++
Исправил зависимость аккаунта пользователя от класса баг репорта ( удалил старый неиспользуемый метод, который на него ссылался и мешал изменениям).
This commit is contained in:
3
.idea/workspace.xml
generated
3
.idea/workspace.xml
generated
@@ -7,8 +7,9 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/properties" beforeDir="false" afterPath="$PROJECT_DIR$/properties" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/properties" beforeDir="false" afterPath="$PROJECT_DIR$/properties" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccount.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
|
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
|
||||||
"PrecompilationFlags": " ",
|
"PrecompilationFlags": " ",
|
||||||
"CheckTestingIntervalSeconds": 10,
|
"CheckTestingIntervalSeconds": 10,
|
||||||
"AutoCheckTesting": true,
|
"AutoCheckTesting": false,
|
||||||
"EmailOnTestingProgress": true,
|
"EmailOnTestingProgress": true,
|
||||||
"CompleteCompilationOptions": true,
|
"CompleteCompilationOptions": true,
|
||||||
"CompleteRunEnvironments": true,
|
"CompleteRunEnvironments": true,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.ComponentsServer.UserAccount;
|
|||||||
import Common.Database.Objects.DBObject;
|
import Common.Database.Objects.DBObject;
|
||||||
import Common.Database.Objects.iDBObject;
|
import Common.Database.Objects.iDBObject;
|
||||||
import Common.Utils.TextLog;
|
import Common.Utils.TextLog;
|
||||||
import _VisualDVM.ComponentsServer.BugReport.BugReport;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import com.sun.org.glassfish.gmbal.Description;
|
import com.sun.org.glassfish.gmbal.Description;
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
@@ -75,20 +74,6 @@ public class UserAccount extends iDBObject {
|
|||||||
public boolean CheckAccessRights(String address_in, TextLog log) {
|
public boolean CheckAccessRights(String address_in, TextLog log) {
|
||||||
return (CheckRegistered(log) && CheckAuthorship(address_in, log));
|
return (CheckRegistered(log) && CheckAuthorship(address_in, log));
|
||||||
}
|
}
|
||||||
public boolean ExtendedCheckAccessRights(BugReport bugReport, TextLog log) {
|
|
||||||
if (CheckRegistered(log)) {
|
|
||||||
if (email.equals(bugReport.executor_address)) {
|
|
||||||
//метод вывести как нерабочий.когда будет изменена схема админства.
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
if (!isAdmin() && (!email.equals(bugReport.sender_address))) {
|
|
||||||
log.Writeln_("Вы не являетесь автором, исполнителем, или администратором");
|
|
||||||
return false;
|
|
||||||
} else return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
public boolean isAdmin() {
|
public boolean isAdmin() {
|
||||||
return role.equals(AccountRole.Admin);
|
return role.equals(AccountRole.Admin);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Common.Utils.Vector_;
|
|||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final int version = 1261;
|
public static final int version = 1262;
|
||||||
public static final int planner_version = 24;
|
public static final int planner_version = 24;
|
||||||
public static final int testingMaxKernels = 64;
|
public static final int testingMaxKernels = 64;
|
||||||
//--
|
//--
|
||||||
|
|||||||
Reference in New Issue
Block a user