forked from 0x2620/pandora
only show manage home if its used
This commit is contained in:
parent
620c8a7d96
commit
b055b3e666
2 changed files with 4 additions and 2 deletions
|
@ -56,7 +56,7 @@
|
|||
"canImportItems": {},
|
||||
"canManageDocuments": {"staff": true, "admin": true},
|
||||
"canManageEntities": {"staff": true, "admin": true},
|
||||
"canManageHome": {"staff": true, "admin": true},
|
||||
"canManageHome": {},
|
||||
"canManagePlacesAndEvents": {"staff": true, "admin": true},
|
||||
"canManageTitlesAndNames": {"staff": true, "admin": true},
|
||||
"canManageUsers": {"staff": true, "admin": true},
|
||||
|
|
|
@ -230,7 +230,9 @@ pandora.ui.mainMenu = function() {
|
|||
{ id: 'places', title: Ox._('Manage Places...'), disabled: !pandora.site.capabilities.canManagePlacesAndEvents[pandora.user.level] },
|
||||
{ id: 'events', title: Ox._('Manage Events...'), disabled: !pandora.site.capabilities.canManagePlacesAndEvents[pandora.user.level] },
|
||||
{},
|
||||
{ id: 'managehome', title: Ox._('Manage Home...'), disabled: !pandora.site.capabilities.canManageHome[pandora.user.level] },
|
||||
Ox.isEmpty(pandora.site.capabilities.canManageHome) ? [] : [
|
||||
{ id: 'managehome', title: Ox._('Manage Home...'), disabled: !pandora.site.capabilities.canManageHome[pandora.user.level] }
|
||||
],
|
||||
{ id: 'users', title: Ox._('Manage Users...'), disabled: !pandora.site.capabilities.canManageUsers[pandora.user.level] },
|
||||
{ id: 'statistics', title: Ox._('Statistics...'), disabled: !pandora.site.capabilities.canManageUsers[pandora.user.level] },
|
||||
{},
|
||||
|
|
Loading…
Reference in a new issue