inner join users u on u.id=ur.user_id
where
ur.role=#{permission,jdbcType=VARCHAR}
+ and ur.resource_id is null
union
inner join users u on u.id=gu.user_id
where
gr.role = #{permission,jdbcType=VARCHAR} and
+ gr.resource_id is null and
gr.group_id is not null
</select>
UserDto user3 = db.users().insertUser();
db.users().insertMember(administratorGroup2, user3);
+ ComponentDto project = db.components().insertPrivateProject();
+
UserDto user4 = db.users().insertUser();
db.users().insertPermissionOnUser(organization1, user4, ADMINISTER_QUALITY_PROFILES);
+ db.users().insertProjectPermissionOnUser(user4, "admin", project);
db.users().insertUser();
List<String> logins = underTest.selectGlobalAdministratorLogins(dbSession);