forked from 0x2620/pandora
check against item groups set
This commit is contained in:
parent
a8f1c8e20d
commit
ff4e000954
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ def find(request, data):
|
|||
if request.user.profile.capability('canEditMetadata') or \
|
||||
request.user.is_staff or \
|
||||
item.get('user') == request.user.username or \
|
||||
item.get('groups', []) & groups:
|
||||
set(item.get('groups', [])) & groups:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue