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},
|
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||||
"canSeeFiles": {"staff": true, "admin": true},
|
"canSeeFiles": {"staff": true, "admin": true},
|
||||||
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
|
"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},
|
"canSendMail": {"staff": true, "admin": true},
|
||||||
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
|
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
|
||||||
},
|
},
|
||||||
|
@ -446,7 +446,7 @@
|
||||||
"id": "size",
|
"id": "size",
|
||||||
"title": "Size",
|
"title": "Size",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"capability": "canSeeFiles",
|
"capability": "canSeeSize",
|
||||||
"columnWidth": 60,
|
"columnWidth": 60,
|
||||||
"format": {"type": "value", "args": ["B"]},
|
"format": {"type": "value", "args": ["B"]},
|
||||||
"sort": true
|
"sort": true
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||||
"canSeeFiles": {"staff": true, "admin": true},
|
"canSeeFiles": {"staff": true, "admin": true},
|
||||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
"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},
|
"canSendMail": {"staff": true, "admin": true},
|
||||||
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,7 +32,7 @@ pandora.ui.statusbar = function() {
|
||||||
function getText(data) {
|
function getText(data) {
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
canSeeFiles = pandora.site.capabilities.canSeeFiles[pandora.user.level],
|
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'
|
itemName = ui.listView == 'clip'
|
||||||
? (data.items == 1 ? 'Clip' : 'Clips')
|
? (data.items == 1 ? 'Clip' : 'Clips')
|
||||||
: (pandora.site.itemName[data.items == 1 ? 'singular' : 'plural']),
|
: (pandora.site.itemName[data.items == 1 ? 'singular' : 'plural']),
|
||||||
|
@ -49,7 +49,7 @@ pandora.ui.statusbar = function() {
|
||||||
);
|
);
|
||||||
data.duration && parts.push(Ox.formatDuration(data.duration));
|
data.duration && parts.push(Ox.formatDuration(data.duration));
|
||||||
}
|
}
|
||||||
if (canSeeListSize) {
|
if (canSeeSize) {
|
||||||
data.size && parts.push(Ox.formatValue(data.size, 'B'));
|
data.size && parts.push(Ox.formatValue(data.size, 'B'));
|
||||||
}
|
}
|
||||||
if (canSeeFiles) {
|
if (canSeeFiles) {
|
||||||
|
|
Loading…
Reference in a new issue