summaryrefslogtreecommitdiff
path: root/app/Model/ProjectRoleRestrictionModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-04-05 19:16:04 -0400
committerFrederic Guillot <fred@kanboard.net>2017-04-05 19:16:04 -0400
commit66c8351ad4ce843d791a802374f1eb2b395a45e1 (patch)
treed66a460871560b295b5b33bcee4359631a0a2b45 /app/Model/ProjectRoleRestrictionModel.php
parent947f4bbc07547b13eab97bba72a767646f28dcfe (diff)
Add new project role restriction to block task suppression
Diffstat (limited to 'app/Model/ProjectRoleRestrictionModel.php')
-rw-r--r--app/Model/ProjectRoleRestrictionModel.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/ProjectRoleRestrictionModel.php b/app/Model/ProjectRoleRestrictionModel.php
index 8ccdcf9c..b8f00c17 100644
--- a/app/Model/ProjectRoleRestrictionModel.php
+++ b/app/Model/ProjectRoleRestrictionModel.php
@@ -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'),
);