File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/main/controllers/Project Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public ProjectUserDto create(ProjectUserDto template) throws AqualityException {
32
32
@ Override
33
33
public List <ProjectUserDto > get (ProjectUserDto template ) throws AqualityException {
34
34
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 ) {
36
36
return fillProjectUsers (projectUserDao .searchAll (template ));
37
37
} else {
38
38
throw new AqualityPermissionsException ("Account is not allowed to view Project Users" , baseUser );
You can’t perform that action at this time.
0 commit comments