Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 9, 2023
1 parent 5e59985 commit ce5aded
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion omeroweb/webclient/webclient_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,11 @@ def updateGroup(self, group, name, permissions, description=None):
# can't update current group
temp_switch = True
# find a group to temp switch to...
gids = [gid for gid in self.getEventContext().memberOfGroups if (gid != 0 and gid != group.id)]
gids = [
gid
for gid in self.getEventContext().memberOfGroups
if (gid != 0 and gid != group.id)
]
if len(gids) == 0:
return ["You can't edit your current group!"]
self.setGroupForSession(gids[0])
Expand Down

0 comments on commit ce5aded

Please sign in to comment.