From 33d6b04df0e4471c4bb3c64f00671f13585d3f77 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 12 Jun 2012 15:41:00 +0000 Subject: [PATCH] Ist der Owner der Pac-Domain der Pac-Admin? --- hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 3 +++ 1 file changed, 3 insertions(+) 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 @@ public class DomainModuleImpl extends AbstractModuleImpl { 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); }