use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -576,7 +576,7 @@ pandora.ui.documentsPanel = function(options) {
|
|||
var $name, $description, $input,
|
||||
item = $list.value($list.options('selected')[0]),
|
||||
editable = item.user == pandora.user.username
|
||||
|| pandora.site.capabilities.canEditDocuments[pandora.user.level]
|
||||
|| pandora.hasCapability('canEditDocuments')
|
||||
|| options.editable,
|
||||
labelWidth = 80,
|
||||
width = ui.documentSize - 16 - Ox.UI.SCROLLBAR_SIZE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue