fix лишней рассылки админам

This commit is contained in:
2024-11-17 18:37:32 +03:00
parent 1259db5041
commit 025a04d0ed
8 changed files with 17 additions and 15 deletions

View File

@@ -60,8 +60,6 @@ public class CheckAccount extends Pass<Boolean> {
if (Global.componentsServer.db.bugReports.getUI().getCurrent() != null)
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
}
if (Global.mainModule.getAccount().isAdmin())
Global.mainModule.getPass(PassCode.PublishComponent).setControlsVisible(true);
setControlsVisible(false); //если проверка успешна, кнопку больше не показывать.
}
}