Проверка на администратора при удалении SAPFOR
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||
import TestingSystem.Common.TestingServer;
|
||||
@@ -7,4 +8,8 @@ public class DeleteServerSapfor extends DeleteServerObject<TestingServer, Server
|
||||
public DeleteServerSapfor() {
|
||||
super(Global.testingServer, ServerSapfor.class);
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
return super.canStart(args)&&Current.getAccount().CheckAdmin(Log);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user