Skip to content

Commit 9765782

Browse files
Fix Admin permissions
1 parent 9b4f53c commit 9765782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/main/controllers/Project/ProjectUserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ProjectUserDto create(ProjectUserDto template) throws AqualityException {
3232
@Override
3333
public List<ProjectUserDto> get(ProjectUserDto template) throws AqualityException {
3434
boolean isViewer = template.getProject_id() != null && baseUser.getProjectUser(template.getProject_id()).isViewer();
35-
if (baseUser.isFromGlobalManagement() || isViewer || template.getUser_id() != null) {
35+
if (baseUser.isAdmin() || baseUser.isFromGlobalManagement() || isViewer || template.getUser_id() != null) {
3636
return fillProjectUsers(projectUserDao.searchAll(template));
3737
} else {
3838
throw new AqualityPermissionsException("Account is not allowed to view Project Users", baseUser);

0 commit comments

Comments
 (0)