This commit is contained in:
2025-02-20 14:13:13 +03:00
parent 25fc55c03e
commit ed61eb2ae0
7 changed files with 26 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ public class PublishComponent extends ComponentsServerPass<Component> {
return false;
}
};
unsafeEmail.Do(message, new Vector<>(Global.componentsServer.db.recipients.Data.values()));
unsafeEmail.Do(message, Global.componentsServer.credentials_db.userAccounts.getActiveMails());
//---
if (target.getComponentType().equals(ComponentType.Sapfor_F) && f.fields.cbAssemblyOnServer.isSelected()) {
Global.mainModule.getUI().getMainWindow().FocusTesting();

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 SynchronizeCredentials extends ComponentsServerPass<Object> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
return Global.mainModule.getAccount().CheckAdmin(Log) && SendRequest(ServerCode.ReceiveCredentialsDatabase);
return Global.mainModule.getAccount().role.equals(AccountRole.Admin) && SendRequest(ServerCode.ReceiveCredentialsDatabase);
}
@Override
protected void showPreparation() throws Exception {