From b83ca0d33f74fa00389d6bf1b33092846c34509d Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Wed, 21 Jun 2017 20:01:17 +0200
Subject: [PATCH] remove static web pac

---
 hsarback/src/de/hsadmin/mods/pac/Pac.java      |    5 -----
 hsarback/src/de/hsadmin/remote/RoleRemote.java |    6 +-----
 2 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java
index 8176f39..f172bee 100644
--- a/hsarback/src/de/hsadmin/mods/pac/Pac.java
+++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -290,11 +290,6 @@
 		}
 	}
 	
-	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);
diff --git a/hsarback/src/de/hsadmin/remote/RoleRemote.java b/hsarback/src/de/hsadmin/remote/RoleRemote.java
index 7d74ac4..a9d724f 100644
--- a/hsarback/src/de/hsadmin/remote/RoleRemote.java
+++ b/hsarback/src/de/hsadmin/remote/RoleRemote.java
@@ -34,11 +34,7 @@
 				role = "HOSTMASTER";
 			}
 			if (user.equals(pacName)) {
-				if (pac.isDynamic()) {
-					role = "PAC_ADMIN_DW";
-				} else {
-					role = "PAC_ADMIN_SW";
-				}
+				role = "PAC_ADMIN_DW";
 			}
 			if (role.equals("USER")) {
 				GenericModuleImpl module = new GenericModuleImpl(transaction);

--
Gitblit v1.9.0-SNAPSHOT