use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -18,7 +18,7 @@ pandora.ui.folders = function(section) {
|
|||
}[section]] || '').split(':')[0] == pandora.user.username,
|
||||
folderItems = pandora.getFolderItems(section),
|
||||
folderItem = folderItems.slice(0, -1),
|
||||
canEditFeatured = pandora.site.capabilities['canEditFeatured' + folderItems][pandora.user.level],
|
||||
canEditFeatured = pandora.hasCapability('canEditFeatured' + folderItems),
|
||||
initCounter = 0,
|
||||
loadCounter = 0;
|
||||
pandora.$ui.allItems = pandora.ui.allItems(section).appendTo(that);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue