diff --git a/pandora/0xdb.jsonc b/pandora/0xdb.jsonc index c13a54ef..30194a58 100644 --- a/pandora/0xdb.jsonc +++ b/pandora/0xdb.jsonc @@ -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 diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index cc815172..6eb691b5 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -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} }, diff --git a/static/js/pandora/statusbar.js b/static/js/pandora/statusbar.js index 67893a8c..20f00f56 100644 --- a/static/js/pandora/statusbar.js +++ b/static/js/pandora/statusbar.js @@ -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) {