From 44f680cf2f1463721eb5bdb7eda4d3b339e63ba9 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 10 Sep 2016 22:37:57 -0400 Subject: Add ui to create new custom project roles and column restrictions --- app/Decorator/ColumnMoveRestrictionCacheDecorator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Decorator/ColumnMoveRestrictionCacheDecorator.php') 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); } -- cgit v1.2.3