|
|
@@ -79,7 +79,7 @@ public class AuthTools {
|
|
|
public boolean getProjectValidator(Integer projectId) {
|
|
|
try {
|
|
|
VisibilityVO visibility = gitlabApi.getProjectVisibility(projectId);
|
|
|
- if (Objects.equals(visibility, "PUBLIC")) {
|
|
|
+ if (Objects.equals(visibility.getVisibility().toLowerCase(), "public")) {
|
|
|
return true;
|
|
|
} else {
|
|
|
return checkProjOwnership(projectId);
|