Skip to content

Commit 0722288

Browse files
authored
Fix typo on set user role param (#132)
1 parent 37c18cf commit 0722288

File tree

3 files changed

+473
-446
lines changed

3 files changed

+473
-446
lines changed

cirro/services/projects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_users(self, project_id: str) -> Optional[List[ProjectUser]]:
132132
"""
133133
return get_project_users.sync(project_id=project_id, client=self._api_client)
134134

135-
def set_user_role(self, project_id: str, username: str, role: ProjectRole, supress_notification=False):
135+
def set_user_role(self, project_id: str, username: str, role: ProjectRole, suppress_notification=False):
136136
"""
137137
Sets a user's role within a project.
138138
@@ -142,12 +142,12 @@ def set_user_role(self, project_id: str, username: str, role: ProjectRole, supre
142142
project_id (str): Project ID
143143
username (str): Username
144144
role (`cirro_api_client.v1.models.ProjectRole`): New role to apply
145-
supress_notification (bool): Suppress email notification
145+
suppress_notification (bool): Suppress email notification
146146
"""
147147
request_body = SetUserProjectRoleRequest(
148148
username=username,
149149
role=role,
150-
supress_notification=supress_notification
150+
suppress_notification=suppress_notification
151151
)
152152
set_user_project_role.sync_detailed(project_id=project_id, body=request_body, client=self._api_client)
153153

0 commit comments

Comments
 (0)