Add new project role restriction to block task suppression

This commit is contained in:
Frederic Guillot
2017-04-05 19:16:04 -04:00
parent 947f4bbc07
commit 66c8351ad4
4 changed files with 135 additions and 67 deletions

View File

@@ -15,6 +15,7 @@ class ProjectRoleRestrictionModel extends Base
const TABLE = 'project_role_has_restrictions';
const RULE_TASK_CREATION = 'task_creation';
const RULE_TASK_SUPPRESSION = 'task_remove';
const RULE_TASK_OPEN_CLOSE = 'task_open_close';
const RULE_TASK_MOVE = 'task_move';
@@ -27,6 +28,7 @@ class ProjectRoleRestrictionModel extends Base
{
return array(
self::RULE_TASK_CREATION => t('Task creation is not permitted'),
self::RULE_TASK_SUPPRESSION => t('Task suppression is not permitted'),
self::RULE_TASK_OPEN_CLOSE => t('Closing or opening a task is not permitted'),
self::RULE_TASK_MOVE => t('Moving a task is not permitted'),
);