diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-10 22:37:57 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-10 22:37:57 -0400 |
commit | 44f680cf2f1463721eb5bdb7eda4d3b339e63ba9 (patch) | |
tree | ed4aeef8b32dbd76277dacf864b028677bc10809 /app/Decorator/ColumnMoveRestrictionCacheDecorator.php | |
parent | 75470c72428c8d8f278d160369558ab31b137fb1 (diff) |
Add ui to create new custom project roles and column restrictions
Diffstat (limited to 'app/Decorator/ColumnMoveRestrictionCacheDecorator.php')
-rw-r--r-- | app/Decorator/ColumnMoveRestrictionCacheDecorator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Decorator/ColumnMoveRestrictionCacheDecorator.php b/app/Decorator/ColumnMoveRestrictionCacheDecorator.php index 331bdebb..cb5e860c 100644 --- a/app/Decorator/ColumnMoveRestrictionCacheDecorator.php +++ b/app/Decorator/ColumnMoveRestrictionCacheDecorator.php @@ -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); } |