add role access limitions for menu items.
This allows external-plugin menu items to conditionally be added to the UI depending on the logged in users current role.
This commit is contained in:
@@ -41,9 +41,10 @@ type ExternalPluginJs struct {
|
||||
}
|
||||
|
||||
type ExternalPluginNavLink struct {
|
||||
Text string `json:"text"`
|
||||
Icon string `json:"icon"`
|
||||
Href string `json:"href"`
|
||||
Text string `json:"text"`
|
||||
Icon string `json:"icon"`
|
||||
Href string `json:"href"`
|
||||
ReqRole models.RoleType `json:"reqRole"`
|
||||
}
|
||||
|
||||
type ExternalPluginCss struct {
|
||||
|
||||
Reference in New Issue
Block a user