if you can award full permissions, you should be able to award EVERYTHING

This commit is contained in:
Laura Klünder 2016-12-25 21:41:16 +01:00
parent e009acaaf0
commit e14d76f682

View file

@ -21,7 +21,8 @@ def get_permissions_field(request):
elif has_operator:
can_award = request.user.operator.can_award_permissions.split(';')
can_full = ':full' in can_award
locations = locations.filter(name__in=can_award)
if not can_full:
locations = locations.filter(name__in=can_award)
else:
locations = []