feat(09-11): add permissioned admin metadata and settings
This commit is contained in:
@@ -145,6 +145,7 @@ type HasPermissions interface {
|
||||
// NavigationItem is one registerNavigation() entry. Controller is the admin
|
||||
// controller ID; the SPA derives its route from that ID.
|
||||
type NavigationItem struct {
|
||||
Code string
|
||||
Label string
|
||||
Icon string
|
||||
Permissions []string
|
||||
@@ -169,6 +170,8 @@ type SettingsItem struct {
|
||||
Order int
|
||||
Keywords []string
|
||||
Permissions []string
|
||||
Form string `json:"-"`
|
||||
NewModel func() any `json:"-"`
|
||||
}
|
||||
|
||||
// HasSettings is implemented by plugins that declare settings screens.
|
||||
|
||||
Reference in New Issue
Block a user