From fedf4ea2de21fcf95fc5aa942cedc7924865f160 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 8 Sep 2016 20:44:03 -0400 Subject: Custom project roles inherit from project members --- app/Helper/UserHelper.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Helper/UserHelper.php') diff --git a/app/Helper/UserHelper.php b/app/Helper/UserHelper.php index e42bafe4..17c66616 100644 --- a/app/Helper/UserHelper.php +++ b/app/Helper/UserHelper.php @@ -150,6 +150,11 @@ class UserHelper extends Base if ($result === null) { $role = $this->getProjectUserRole($project_id); + + if ($this->role->isCustomProjectRole($role)) { + $role = Role::PROJECT_MEMBER; + } + $result = $this->projectAuthorization->isAllowed($controller, $action, $role); $this->memoryCache->set($key, $result); } -- cgit v1.2.3