From 76ed538fdf27299ec11f1c5fe5d53e15a2bef018 Mon Sep 17 00:00:00 2001
From: peter <peter.hormanns@jalin.de>
Date: Tue, 07 May 2013 23:45:07 +0200
Subject: [PATCH] fix dom.isDynamic

---
 hsarback/src/de/hsadmin/mods/dom/Domain.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/Domain.java b/hsarback/src/de/hsadmin/mods/dom/Domain.java
index 8be3423..f86e06e 100644
--- a/hsarback/src/de/hsadmin/mods/dom/Domain.java
+++ b/hsarback/src/de/hsadmin/mods/dom/Domain.java
@@ -25,6 +25,7 @@
 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 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() {

--
Gitblit v1.9.0-SNAPSHOT