From de57e52c55659d94f9a7121a7a0dbc0f8d247e65 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 21 Mar 2012 13:39:36 +0000 Subject: [PATCH] friend can now access the "size" sort key --- pandora/0xdb.jsonc | 4 ++-- pandora/padma.jsonc | 2 +- static/js/pandora/statusbar.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora/0xdb.jsonc b/pandora/0xdb.jsonc index c13a54ef8..30194a588 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 cc815172f..6eb691b52 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 67893a8c3..20f00f562 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) {