Skip to content

Commit

Permalink
fix: Changed the default permission for new group
Browse files Browse the repository at this point in the history
Replaced GROUP_BASIC_PERMISSIONS with WORKSPACE_BASIC_PERMISSIONS
  • Loading branch information
mike-pisman committed Oct 16, 2023
1 parent b65dc01 commit ff0a65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unipoll_api/actions/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def create_group(workspace: Workspace,
await new_group.add_member(account, Permissions.GROUP_ALL_PERMISSIONS)

# Create a policy for the new group
await workspace.add_policy(new_group, Permissions.GROUP_BASIC_PERMISSIONS, False)
await workspace.add_policy(new_group, Permissions.WORKSPACE_BASIC_PERMISSIONS, False)
workspace.groups.append(new_group) # type: ignore
await Workspace.save(workspace, link_rule=WriteRules.WRITE)

Expand Down

0 comments on commit ff0a65f

Please sign in to comment.