Skip to content

Commit ba02668

Browse files
committed
Correct outdated name
1 parent b2cd9d2 commit ba02668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/posit/connect/permissions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ def destroy(self, *permissions: str | Group | User | Permission) -> list[Permiss
183183
client = connect.Client()
184184
185185
# Remove a single permission by principal_guid
186-
client.content.get(content_guid).permissions.delete(principal_guid)
186+
client.content.get(content_guid).permissions.destroy(principal_guid)
187187
188188
# Remove by user (if principal_guid is a user)
189189
user = client.users.get(principal_guid)
190-
client.content.get(content_guid).permissions.delete(user)
190+
client.content.get(content_guid).permissions.destroy(user)
191191
192192
# Remove by group (if principal_guid is a group)
193193
group = client.groups.get(principal_guid)

0 commit comments

Comments
 (0)