рефактиринг интерфейса при отображении полномочий роли пользователя. ввод настройки отменяющей приглашение регистрации при запуске приложения.

This commit is contained in:
2025-02-28 17:46:57 +03:00
parent c551fdd2c9
commit 61d8670416
11 changed files with 90 additions and 62 deletions

View File

@@ -1,4 +1,5 @@
package _VisualDVM.Passes.All;
import _VisualDVM.ComponentsServer.UserAccount.AccountRole;
import _VisualDVM.Global;
import _VisualDVM.Passes.Server.ComponentsServerPass;
import _VisualDVM.Repository.Server.ServerCode;
@@ -13,7 +14,7 @@ public class SynchronizeBugReports extends ComponentsServerPass<Object> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
return Global.mainModule.getAccount().CheckRegistered(Log) && SendRequest(ServerCode.ReceiveBugReportsDatabase);
return !Global.mainModule.getAccount().role.equals(AccountRole.Undefined) && SendRequest(ServerCode.ReceiveBugReportsDatabase);
}
@Override
protected void showPreparation() throws Exception {