From 33d6b04df0e4471c4bb3c64f00671f13585d3f77 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Tue, 12 Jun 2012 17:41:00 +0200
Subject: [PATCH] Ist der Owner der Pac-Domain der Pac-Admin?

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

diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
index 81ee907..b63e151 100644
--- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
+++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -215,6 +215,9 @@
 			if (!isPacAdmin && !isCustomer && !isHostmaster) {
 				throw new AuthorisationException(loginUser, method, dom);
 			}
+			if (dom.isPacDomain() && !dom.getUser().getName().equals(domPac.getName())) {
+				throw new AuthorisationException(loginUser, method, dom);
+			}
 			if (dom.isPacDomain() && !isHostmaster && !"add".equals(method)) {
 				throw new AuthorisationException(loginUser, method, dom);
 			}

--
Gitblit v1.9.1