Add ui to create new custom project roles and column restrictions

This commit is contained in:
Frederic Guillot
2016-09-10 22:37:57 -04:00
parent 75470c7242
commit 44f680cf2f
25 changed files with 717 additions and 26 deletions

View File

@@ -42,13 +42,13 @@ class ColumnMoveRestrictionCacheDecorator
* @param int $project_id
* @return array|mixed
*/
public function getAllSrcColumns($project_id)
public function getAllSrcColumns($project_id, $role)
{
$key = $this->cachePrefix.$project_id;
$key = $this->cachePrefix.$project_id.$role;
$columnIds = $this->cache->get($key);
if ($columnIds === null) {
$columnIds = $this->columnMoveRestrictionModel->getAllSrcColumns($project_id);
$columnIds = $this->columnMoveRestrictionModel->getAllSrcColumns($project_id, $role);
$this->cache->set($key, $columnIds);
}