Commit 4cbfb0bf authored by lukas.burgey's avatar lukas.burgey
Browse files

Change user.services implementation

parent ec6e9ebd
Pipeline #81763 failed with stage
in 1 minute and 46 seconds
......@@ -105,15 +105,12 @@ class User(AbstractUser):
# services returns all services this user has access to
@property
def services(self):
queryset = None
s = set()
for vo in self.vos.all():
if queryset is None:
queryset = vo.services.all()
else:
queryset.union(vo.services.all())
s = s.union(vo.services.all())
return queryset
return list(s)
@property
def is_active_at_clients(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment