diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-04-05 22:53:54 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-04-05 22:53:54 -0400 |
commit | 481e767d3533449e63eda1767c5e6c071d3442a3 (patch) | |
tree | ac97a2bb3d31078e2f88ea5346bc9745b136903d /app/Model/ProjectRoleRestrictionModel.php | |
parent | 22f48ea2897d95c8a31e26a0b3313559de8839d6 (diff) |
Add new project restriction to block assignee change
Diffstat (limited to 'app/Model/ProjectRoleRestrictionModel.php')
-rw-r--r-- | app/Model/ProjectRoleRestrictionModel.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/Model/ProjectRoleRestrictionModel.php b/app/Model/ProjectRoleRestrictionModel.php index b8f00c17..714b2a65 100644 --- a/app/Model/ProjectRoleRestrictionModel.php +++ b/app/Model/ProjectRoleRestrictionModel.php @@ -14,10 +14,11 @@ class ProjectRoleRestrictionModel extends Base { const TABLE = 'project_role_has_restrictions'; - const RULE_TASK_CREATION = 'task_creation'; + 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'; + const RULE_TASK_OPEN_CLOSE = 'task_open_close'; + const RULE_TASK_MOVE = 'task_move'; + const RULE_TASK_CHANGE_ASSIGNEE = 'task_change_assignee'; /** * Get rules @@ -27,10 +28,11 @@ class ProjectRoleRestrictionModel extends Base public function getRules() { 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'), + 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'), + self::RULE_TASK_CHANGE_ASSIGNEE => t('Changing assignee is not permitted'), ); } |