Skip to content
Snippets Groups Projects
Commit f6adaecb authored by Barbora Kompisova's avatar Barbora Kompisova
Browse files

Fixed finding group intersection

parent c54e906c
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -130,8 +130,8 @@ class UserSubmissionList(Resource):
def find_groups_intersection(user1: User, user2: User):
temp = [user2.groups]
res = [value for value in user1.groups if value in temp]
other_groups = user2.groups
res = [group for group in user1.groups if group in other_groups]
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment