You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes all provided permissions from the content item's permissions.
156
156
157
157
Parameters
158
158
----------
159
159
*permissions : str | Group | User | Permission
160
160
The content item permissions to remove. If a `str` is received, it is compared against
161
-
the Permissions' `principal_gruid`. If a `Group`, `User`, or `Permission` is received,
161
+
the Permissions' `principal_guid`. If a `Group`, `User`, or `Permission` is received,
162
162
the `guid` is used and compared against the Permissions' `principal_guid`. If a
163
163
`Permission` is received, the `principal_guid` is used. Note, only the associated permissions will be destroyed; Any users or groups provided will remain.
164
164
@@ -220,7 +220,7 @@ def destroy(self, *permissions: str | Group | User | Permission) -> list[Permiss
220
220
principal_guid: str=arg["principal_guid"]
221
221
else:
222
222
raiseTypeError(
223
-
f"destroy() expected argument type 'str', 'Group', 'Permission' or 'User', but got '{type(arg).__name__}'",
223
+
f"destroy() expected argument type 'str', 'User', 'Group', or 'Permission' but got '{type(arg).__name__}'",
0 commit comments