10.1.8. Class cerebro.aclasses.Perm¶
-
class
cerebro.aclasses.
Perm
[source]¶ Access rights class.
Some actions with Cerebro objects, whether it is creating, modifying task/message properties or creating projects/users, require appropriate permissions.
The action types that require permissions are described below.
- Use the functions of the
cerebro.core
module to check the permissions:
-
PERM_GLOBAL_
= ''¶ Global access rights
-
PERM_GLOBAL_FILE_STORAGES
= 60¶ File storage management. Allows to allocate available file storages for project data.
-
PERM_GLOBAL_MATERIAL_RESOURCES
= 56¶ Material resource management. Allows to create/delete material resources.
-
PERM_GLOBAL_SALARIES_AND_WORKING_SCHEDULES
= 59¶ Schedule and salary management. Allows to set users’ man hour rates and working time schedules.
-
PERM_GLOBAL_TAGS_AND_ACTIVITIES
= 61¶ Tags and activities management. Allows to create/delete tags and activity types.
-
PERM_GLOBAL_USERS
= 62¶ User account management. Allows to create users, groups, roles and adjust the ‘Who sees whom’ settings.
-
PERM_MESSAGE_
= ''¶ Access rights to the message
-
PERM_MESSAGE_EDITABLE
= 3¶ Allows to edit message text and attachments. Also, allows to delete the message.
-
PERM_MESSAGE_PROPERTIES
= 16¶ Allows to edit such message properties as ‘Visible for clients’ and ‘Report approved’.
-
PERM_TASK_
= ''¶ Access rights to the task
-
PERM_TASK_ANY_MESSAGE
= 10¶ Any message edit. Allows to edit all messages.
-
PERM_TASK_BUDGET
= 30¶ Task budget edit. Allows to edit task budget.
-
PERM_TASK_CREATE_CLIENT_REVIEW
= 26¶ Client reviews creation. Allows to create messages of the ‘Client review’ type.
-
PERM_TASK_CREATE_DEFINITION
= 18¶ Defifnitions creation. Allows to create messages of the ‘Definition’ type.
-
PERM_TASK_CREATE_NOTE
= 24¶ Notes creation. Allows to create messages of the ‘Note’ type.
-
PERM_TASK_CREATE_REPORT
= 20¶ Reports creation. Allows to create messages of the ‘Report’ and ‘Resource Report’ types.
-
PERM_TASK_CREATE_REVIEW
= 22¶ Reviews creation. Allows to create messages of the ‘Review’ type.
-
PERM_TASK_LAST_MESSAGE
= 34¶ Last message edit. Allows to edit unreplied messages by other users.
-
PERM_TASK_MANAGMENT
= 6¶ Task management. Allows to create/delete tasks.
-
PERM_TASK_MESSAGES_PROPERTIES
= 16¶ Message properties edit. Allows to edit such message properties as ‘Visible for clients’ and ‘Report approved’.
-
PERM_TASK_PROGRESS
= 32¶ Task progress edit. Allows to alter task progress, except setting it to 100%.
-
PERM_TASK_PROPERTIES
= 8¶ Task properties change. Allows to edit almost all task properties except tags and budget.
-
PERM_TASK_TAG
= 14¶ Task tags edit. Allows to edit task tags.
- Use the functions of the