From 953938a033c845985ffbcdeaa345704160fa2589 Mon Sep 17 00:00:00 2001
From: Michael Hierweck <michael.hierweck@hostsharing.net>
Date: Tue, 30 Apr 2013 21:16:34 +0200
Subject: [PATCH] Merge branch 'master' of ssh://hsh04-source@hsh04.hostsharing.net/home/doms/source.hostsharing.net/source/hsadmin.git

---
 hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
index d7a8de4..f5dfa12 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
@@ -88,7 +88,7 @@
 		pac.setPacComponents(pacComponents);
 		AbstractEntity newPacEntity = null;
 		String pacType = pac.getBasepac().getName();
-		if (!pacType.equals(Pac.PAC_WEB) && !pacType.equals(Pac.PAC_DW) && !pacType.equals(Pac.PAC_SW)) {
+		if (pacType.equals(Pac.PAC_WEB) || pacType.equals(Pac.PAC_DW) || pacType.equals(Pac.PAC_SW)) {
 			Set<UnixUser> users = new HashSet<UnixUser>();
 			pac.setUnixUser(users);
 			UnixUser admin = new UnixUser();
@@ -157,7 +157,7 @@
 			throw new AuthorisationException(getTransaction().getLoginUser(), "delete", existingEntity);
 		}
 		String pacType = pac.getBasepac().getName();
-		if (!pacType.equals(Pac.PAC_WEB) && !pacType.equals(Pac.PAC_DW) && !pacType.equals(Pac.PAC_SW)) {		
+		if (pacType.equals(Pac.PAC_WEB) || pacType.equals(Pac.PAC_DW) || pacType.equals(Pac.PAC_SW)) {		
 			GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction());
 
 			String[] dependQueries = new String[] {

--
Gitblit v1.9.0-SNAPSHOT