Use capability check instead of role check in strip_link_and_variations()

This commit is contained in:
2018-03-23 14:23:47 +01:00
parent e4f229cc70
commit 0cf45c0d78
2 changed files with 4 additions and 9 deletions

View File

@@ -109,8 +109,8 @@ FILE_LINK_VALIDITY = defaultdict(
gcs=3600 * 23, # 23 hours for Google Cloud Storage.
)
# Roles with full GET-access to all variations of files.
FULL_FILE_ACCESS_ROLES = {'admin', 'subscriber', 'demo'}
# Capability with GET-access to all variations of files.
FULL_FILE_ACCESS_CAP = 'subscriber'
# Client and Subclient IDs for Blender ID
BLENDER_ID_CLIENT_ID = 'SPECIAL-SNOWFLAKE-57'