From ab46a85a89e4507b916f5e2a5ce729778ab3b614 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 19 Apr 2012 09:29:37 +0000 Subject: [PATCH] hide times accessed and last accessed from regular users (fixes #741) --- pandora/0xdb.jsonc | 4 +++- pandora/padma.jsonc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora/0xdb.jsonc b/pandora/0xdb.jsonc index 7e478d3e6..9f8c68e30 100644 --- a/pandora/0xdb.jsonc +++ b/pandora/0xdb.jsonc @@ -21,7 +21,6 @@ for items of a rights level up to and including x */ "capabilities": { - // "canClickMap": {"friend": true, "staff": true, "admin": true}, "canDeleteItems": {"admin": true}, "canDownloadVideo": {"guest": -1, "member": -1, "friend": -1, "staff": -1, "admin": -1}, "canEditAnnotations": {"staff": true, "admin": true}, @@ -37,6 +36,7 @@ "canManageUsers": {"staff": true, "admin": true}, "canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4}, + "canSeeAccessed": {"staff": true, "admin": true}, "canSeeDebugMenu": {"staff": true, "admin": true}, "canSeeExtraItemViews": {"staff": true, "admin": true}, "canSeeFiles": {"staff": true, "admin": true}, @@ -507,6 +507,7 @@ "id": "accessed", "title": "Last Accessed", "type": "date", + "capability": "canSeeAccessed", "columnWidth": 150, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "sort": true @@ -515,6 +516,7 @@ "id": "timesaccessed", "title": "Times Accessed", "type": "integer", + "capability": "canSeeAccessed", "columnWidth": 60, "sort": true }, diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index 5766c3ae6..a7fa4bc34 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -19,7 +19,6 @@ for items of a rights level up to and including x */ "capabilities": { - // "canClickMap": {"friend": true, "staff": true, "admin": true}, "canDeleteItems": {"admin": true}, "canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canEditAnnotations": {"staff": true, "admin": true}, @@ -35,6 +34,7 @@ "canManageUsers": {"staff": true, "admin": true}, "canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, + "canSeeAccessed": {"staff": true, "admin": true}, "canSeeDebugMenu": {"staff": true, "admin": true}, "canSeeExtraItemViews": {"staff": true, "admin": true}, "canSeeFiles": {"staff": true, "admin": true}, @@ -428,6 +428,7 @@ "id": "accessed", "title": "Last Accessed", "type": "date", + "capability": "canSeeAccessed", "columnWidth": 90, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "sort": true @@ -436,6 +437,7 @@ "id": "timesaccessed", "title": "Times Accessed", "type": "integer", + "capability": "canSeeAccessed", "columnWidth": 60, "format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}, "sort": true