forked from 0x2620/pandora
friend can now access the "size" sort key
This commit is contained in:
parent
636a1c2e71
commit
de57e52c55
3 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@
|
|||
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||
"canSeeFiles": {"staff": true, "admin": true},
|
||||
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
|
||||
"canSeeListSize": {"friend": true, "staff": true, "admin": true},
|
||||
"canSeeSize": {"friend": true, "staff": true, "admin": true},
|
||||
"canSendMail": {"staff": true, "admin": true},
|
||||
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
|
||||
},
|
||||
|
@ -446,7 +446,7 @@
|
|||
"id": "size",
|
||||
"title": "Size",
|
||||
"type": "integer",
|
||||
"capability": "canSeeFiles",
|
||||
"capability": "canSeeSize",
|
||||
"columnWidth": 60,
|
||||
"format": {"type": "value", "args": ["B"]},
|
||||
"sort": true
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||
"canSeeFiles": {"staff": true, "admin": true},
|
||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canSeeListSize": {"friend": true, "staff": true, "admin": true},
|
||||
"canSeeSize": {"staff": true, "admin": true},
|
||||
"canSendMail": {"staff": true, "admin": true},
|
||||
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
||||
},
|
||||
|
|
|
@ -32,7 +32,7 @@ pandora.ui.statusbar = function() {
|
|||
function getText(data) {
|
||||
var ui = pandora.user.ui,
|
||||
canSeeFiles = pandora.site.capabilities.canSeeFiles[pandora.user.level],
|
||||
canSeeListSize = pandora.site.capabilities.canSeeListSize[pandora.user.level],
|
||||
canSeeSize = pandora.site.capabilities.canSeeSize[pandora.user.level],
|
||||
itemName = ui.listView == 'clip'
|
||||
? (data.items == 1 ? 'Clip' : 'Clips')
|
||||
: (pandora.site.itemName[data.items == 1 ? 'singular' : 'plural']),
|
||||
|
@ -49,7 +49,7 @@ pandora.ui.statusbar = function() {
|
|||
);
|
||||
data.duration && parts.push(Ox.formatDuration(data.duration));
|
||||
}
|
||||
if (canSeeListSize) {
|
||||
if (canSeeSize) {
|
||||
data.size && parts.push(Ox.formatValue(data.size, 'B'));
|
||||
}
|
||||
if (canSeeFiles) {
|
||||
|
|
Loading…
Reference in a new issue