небольшой баг. у незарегистрированного пользователя могли проверяться пакеты.
This commit is contained in:
@@ -46,7 +46,7 @@ public class Constants {
|
||||
public static final String SMTPHost = "smtp.mail.ru";
|
||||
public static final int SMTPPort = 465;
|
||||
public static final int MailSocketPort = 465;
|
||||
//7796 отладочный порт Is_DVM_STAT //
|
||||
//
|
||||
public static final int ComponentsServerPort = 7995; //7795
|
||||
public static final int TestingServerPort = 7998; //7998
|
||||
public static final int SocketTimeout = 0;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package _VisualDVM.Passes.Testing;
|
||||
import Common.Database.Tables.iDBTable;
|
||||
import _VisualDVM.ComponentsServer.UserAccount.AccountRole;
|
||||
import _VisualDVM.ComponentsServer.UserAccount.UserAccount;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.Server.TestingServerPass;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
@@ -22,13 +24,15 @@ public abstract class ActualizeTestingPackages<P extends TestingPackage> extends
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
UserAccount account = Global.mainModule.getAccount();
|
||||
target = new Vector<>();
|
||||
for (P testingPackage : getTable().Data.values()) {
|
||||
if (testingPackage.state.isActive()) {
|
||||
target.add(new Pair(testingPackage.id, testingPackage.ChangeDate));
|
||||
}
|
||||
}
|
||||
return !target.isEmpty()&&SendRequest(getCheckCode(), "", target);
|
||||
return (account.role.equals(AccountRole.Admin) || account.role.equals(AccountRole.Developer)) &&
|
||||
!target.isEmpty()&&SendRequest(getCheckCode(), "", target);
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
|
||||
@@ -107,6 +107,8 @@ public class MainUI extends UIModule_ {
|
||||
getMainWindow().getCallbackWindow().showNoBugReports();
|
||||
Global.normalProperties.setControlVisible("AutoBugReportsLoad", false);
|
||||
Global.normalProperties.setControlVisible("AutoTestsLoad", false);
|
||||
Global.normalProperties.AutoCheckTesting = false;
|
||||
Global.normalProperties.Update();
|
||||
};
|
||||
void showUserRights(){
|
||||
Global.mainModule.SetUserPassesAccess();
|
||||
@@ -115,6 +117,8 @@ public class MainUI extends UIModule_ {
|
||||
getMainWindow().getCallbackWindow().showMyOnlyBugReports();
|
||||
Global.normalProperties.setControlVisible("AutoBugReportsLoad", true);
|
||||
Global.normalProperties.setControlVisible("AutoTestsLoad", false);
|
||||
Global.normalProperties.AutoCheckTesting = false;
|
||||
Global.normalProperties.Update();
|
||||
};
|
||||
void showDeveloperRights(){
|
||||
Global.mainModule.SetDeveloperPassesAccess();
|
||||
|
||||
Reference in New Issue
Block a user