use pandora.hasCapability

This commit is contained in:
j 2017-11-04 11:53:27 +02:00
commit db2d37e2bb
32 changed files with 49 additions and 53 deletions

View file

@ -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;