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:
woodsaj
2015-11-27 16:27:14 +08:00
parent 700b77c450
commit 1b5c40dd1f
2 changed files with 26 additions and 4 deletions
+4 -3
View File
@@ -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 {