Skip to content

Commit

Permalink
Update cylc/uiserver/authorise.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver authored Oct 20, 2021
1 parent 57fbd06 commit d579666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cylc/uiserver/authorise.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ def expand_and_process_access_groups(permission_set: set) -> set:
for action_group, expansion in {
Authorization.NOT_CONTROL: [
f"!{x}" for x in Authorization.CONTROL_OPS.fget()],
Authorization.NOT_ALL: list(
map((lambda x: '!' + x), Authorization.ALL_OPS.fget())),
Authorization.NOT_READ: list(
map((lambda x: '!' + x), Authorization.READ_OPS))}.items():
Authorization.NOT_ALL: [
f"!{x}" for x in Authorization.ALL_OPS.fget()],
Authorization.NOT_READ: [
f"!{x}" for x in Authorization.READ_OPS]}.items():
if action_group in permission_set:
permission_set.remove(action_group)
permission_set.update(expansion)
Expand Down

0 comments on commit d579666

Please sign in to comment.