diff options
author | rafacamargo123 <rafacamargo123@gmail.com> | 2019-01-05 12:10:26 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-05 12:10:26 -0200 |
commit | fdcda3f10d5248df000e78f952812ddf111877a5 (patch) | |
tree | d582d9442154a6216666fb1e0d874325557509a9 /app/Model | |
parent | 30e9c221399c80696d6e317af1470868589dcd13 (diff) |
Fix assignable users on a group with a custom role
Groups custom roles are now handled the same ways users custom roles are.
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/ProjectGroupRoleModel.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/ProjectGroupRoleModel.php b/app/Model/ProjectGroupRoleModel.php index 2b1973f5..213fee0f 100644 --- a/app/Model/ProjectGroupRoleModel.php +++ b/app/Model/ProjectGroupRoleModel.php @@ -114,7 +114,7 @@ class ProjectGroupRoleModel extends Base ->join(self::TABLE, 'group_id', 'group_id', GroupMemberModel::TABLE) ->eq(self::TABLE.'.project_id', $project_id) ->eq(UserModel::TABLE.'.is_active', 1) - ->in(self::TABLE.'.role', array(Role::PROJECT_MANAGER, Role::PROJECT_MEMBER)) + ->neq(self::TABLE.'.role', Role::PROJECT_VIEWER) ->asc(UserModel::TABLE.'.username') ->findAll(); } |