Merge pull request #2605 from ostcar/fix_permission
Fixes user permissions
This commit is contained in:
commit
bc321bd714
@ -58,8 +58,9 @@ class UserAccessPermissions(BaseAccessPermissions):
|
|||||||
fields = USERCANSEESERIALIZER_FIELDS
|
fields = USERCANSEESERIALIZER_FIELDS
|
||||||
# Let only some fields pass this method.
|
# Let only some fields pass this method.
|
||||||
data = {}
|
data = {}
|
||||||
for key in full_data.keys():
|
for base_key in fields:
|
||||||
if key in fields:
|
for key in (base_key, base_key + '_id'):
|
||||||
|
if key in full_data.keys():
|
||||||
data[key] = full_data[key]
|
data[key] = full_data[key]
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user