Fix assignable users on a group with a custom role

Groups custom roles are now handled the same ways users custom roles are.
This commit is contained in:
rafacamargo123 2019-01-05 12:10:26 -02:00 committed by GitHub
parent 30e9c22139
commit fdcda3f10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class ProjectGroupRoleModel extends Base
->join(self::TABLE, 'group_id', 'group_id', GroupMemberModel::TABLE) ->join(self::TABLE, 'group_id', 'group_id', GroupMemberModel::TABLE)
->eq(self::TABLE.'.project_id', $project_id) ->eq(self::TABLE.'.project_id', $project_id)
->eq(UserModel::TABLE.'.is_active', 1) ->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') ->asc(UserModel::TABLE.'.username')
->findAll(); ->findAll();
} }