if you can award full permissions, you should be able to award EVERYTHING
This commit is contained in:
parent
e009acaaf0
commit
e14d76f682
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ def get_permissions_field(request):
|
||||||
elif has_operator:
|
elif has_operator:
|
||||||
can_award = request.user.operator.can_award_permissions.split(';')
|
can_award = request.user.operator.can_award_permissions.split(';')
|
||||||
can_full = ':full' in can_award
|
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:
|
else:
|
||||||
locations = []
|
locations = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue