Skip to content

Commit

Permalink
Rely on self.group_id insetad of getClientID
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Apr 23, 2023
1 parent 7e799fd commit 5e0bb01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bika/lims/content/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ def remove_group(self):
return False
portal_groups = api.get_tool("portal_groups")
# Use the client ID for the group ID
group_id = self.getClientID()
portal_groups.removeGroup(group_id)
portal_groups.removeGroup(self.group_id)
# also remove the group attribute
delattr(self, self.GROUP_KEY)
return True

@security.private
Expand Down

0 comments on commit 5e0bb01

Please sign in to comment.