remove static web pac

This commit is contained in:
Peter Hormanns 2017-06-21 20:01:17 +02:00
parent bf2b3535b9
commit b83ca0d33f
2 changed files with 1 additions and 10 deletions

View File

@ -290,11 +290,6 @@ public class Pac extends AbstractEntity implements Serializable {
}
}
public boolean isDynamic() {
String basepacName = getBasepac().getName();
return BasePacType.PAC_DW.equals(basepacName) || BasePacType.PAC_WEB.equals(basepacName);
}
public boolean isManagedServer() {
String basepacName = getBasepac().getName();
return BasePacType.PAC_SRV.equals(basepacName);

View File

@ -34,11 +34,7 @@ public class RoleRemote implements IRemote {
role = "HOSTMASTER";
}
if (user.equals(pacName)) {
if (pac.isDynamic()) {
role = "PAC_ADMIN_DW";
} else {
role = "PAC_ADMIN_SW";
}
}
if (role.equals("USER")) {
GenericModuleImpl module = new GenericModuleImpl(transaction);