fix logic

This commit is contained in:
Peter Hormanns 2012-07-18 14:56:20 +00:00
parent bed01753ac
commit 32f8e90490

View File

@ -213,7 +213,7 @@ public class DomainModuleImpl extends AbstractModuleImpl {
boolean isCustomer = aLoginUserName.equals(domPac.getCustomer().getName()); boolean isCustomer = aLoginUserName.equals(domPac.getCustomer().getName());
boolean isHostmaster = loginUser.hasHostmasterRole(); boolean isHostmaster = loginUser.hasHostmasterRole();
if (!isPacAdmin && !isCustomer && !isHostmaster) { if (!isPacAdmin && !isCustomer && !isHostmaster) {
if (! isDomAdmin || !"update".equals(method)) { if (!isDomAdmin || !"update".equals(method)) {
throw new AuthorisationException(loginUser, method, dom); throw new AuthorisationException(loginUser, method, dom);
} }
} }