fix dom.isDynamic

This commit is contained in:
peter 2013-05-07 23:45:07 +02:00
parent 5028419aa3
commit 76ed538fdf

View File

@ -25,6 +25,7 @@ import de.hsadmin.core.model.AbstractEntity;
import de.hsadmin.core.model.AnnFieldIO;
import de.hsadmin.core.model.AnnModuleImpl;
import de.hsadmin.core.model.ReadWriteAccess;
import de.hsadmin.mods.pac.Pac;
import de.hsadmin.mods.user.UnixUser;
@Entity(name = "Domains")
@ -182,7 +183,7 @@ public class Domain extends AbstractEntity {
public boolean isDynamic() {
String basepacName = getUser().getPac().getBasepac().getName();
return isPacDomain() || (basepacName == "PAC") || (basepacName == "DW/B");
return isPacDomain() || (basepacName == Pac.PAC_DW) || (basepacName == Pac.PAC_WEB);
}
public boolean isStatic() {