Add new project restriction to block assignee change
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user