Merge pull request #2605 from ostcar/fix_permission

Fixes user permissions
This commit is contained in:
Norman Jäckel 2016-11-08 23:50:39 +01:00 committed by GitHub
commit bc321bd714

View File

@ -58,9 +58,10 @@ class UserAccessPermissions(BaseAccessPermissions):
fields = USERCANSEESERIALIZER_FIELDS
# Let only some fields pass this method.
data = {}
for key in full_data.keys():
if key in fields:
data[key] = full_data[key]
for base_key in fields:
for key in (base_key, base_key + '_id'):
if key in full_data.keys():
data[key] = full_data[key]
return data
def get_projector_data(self, full_data):