make sure Git GC errors are visible on the secondary node
[teamcity/git-plugin.git] / git-server-tc / src / jetbrains / buildServer / buildTriggers / vcs / git / health / GitGcErrorsHealthPage.java
index 51a55c9db3d22332da186beec4eb951345b3380d..01d24cffe222b96017043b1a7dc365d812ee64aa 100644 (file)
@@ -58,7 +58,7 @@ public class GitGcErrorsHealthPage extends HealthStatusItemPageExtension {
   public boolean isAvailable(@NotNull HttpServletRequest request) {
     if (!super.isAvailable(request))
       return false;
-    if (!SessionUser.getUser(request).isPermissionGrantedGlobally(Permission.CHANGE_SERVER_SETTINGS)) return false;
+    if (!SessionUser.getUser(request).isPermissionGrantedGlobally(Permission.MANAGE_SERVER_INSTALLATION)) return false;
     HealthStatusItem item = getStatusItem(request);
     Object path = item.getAdditionalData().get(GitGcErrorsHealthReport.ERRORS_KEY);
     return path instanceof Map && !((Map) path).isEmpty();