collaboration.permission module¶
Class representing a permission grant for a user or group on a project. |
- class Permission(handle: LP_BNCollaborationPermission)[source]¶
Bases:
object
Class representing a permission grant for a user or group on a project.
- Parameters:
handle (LP_BNCollaborationPermission) –
- 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: int | None¶
Id of affected group
- Returns:
Group id, if this is a group permission. Else, None
- property group_name: str | None¶
Name of affected group
- Returns:
Group name, if this is a group permission. Else, None
- property level: CollaborationPermissionLevel¶
Level of permission
- Returns:
Permission level
- property project: RemoteProject¶
Owning Project
- Returns:
Project object