use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -12,7 +12,7 @@ pandora.ui.news = function(width, height) {
|
|||
backgroundColor = Ox.Theme() == 'oxlight' ? 'rgb(224, 224, 224)'
|
||||
: Ox.Theme() == 'oxmedium' ? 'rgb(128, 128, 128)'
|
||||
: 'rgb(32, 32, 32)',
|
||||
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||
isEditable = pandora.hasCapability('canEditSitePages'),
|
||||
items = [],
|
||||
$text;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue