collaboration.permission module¶
Class representing a permission grant for a user or group on a project. |
- class Permission(handle)[source]¶
Bases:
object
Class representing a permission grant for a user or group on a project.
- property can_admin: bool¶
If the permission grants the affect user/group the ability to administer the project
- Returns:
True if permission granted
- property can_edit: bool¶
If the permission grants the affect user/group the ability to edit files in the project
- Returns:
True if permission granted
- property can_view: bool¶
If the permission grants the affect user/group the ability to read files in the project
- Returns:
True if permission granted
- property group_id: Optional[int]¶
Id of affected group
- Returns:
Group id, if this is a group permission. Else, None
- property group_name: Optional[str]¶
Name of affected group
- Returns:
Group name, if this is a group permission. Else, None
- property level: PermissionLevel¶
Level of permission
- Returns:
Permission level