Compare commits
No commits in common. "9e2a0441d3744e8c1e4abc3e26839a3defd78357" and "91bbb2f2e9a681e8827921887131f9818a9420f3" have entirely different histories.
9e2a0441d3
...
91bbb2f2e9
@ -55,9 +55,9 @@ class QueryABC(ObjectType):
|
||||
if user == "system" or user.auth_role == AuthRoleEnum.admin:
|
||||
return self._resolve_collection(collection, *args, **kwargs)
|
||||
|
||||
for x in collection.to_list():
|
||||
for x in collection:
|
||||
if not self._can_user_see_element(user, x):
|
||||
collection.remove(x)
|
||||
return List()
|
||||
|
||||
return self._resolve_collection(collection, *args, **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user