Ist der Owner der Pac-Domain der Pac-Admin?

This commit is contained in:
Peter Hormanns 2012-06-12 15:41:00 +00:00
parent 9dcae446ee
commit 33d6b04df0

View File

@ -215,6 +215,9 @@ public class DomainModuleImpl extends AbstractModuleImpl {
if (!isPacAdmin && !isCustomer && !isHostmaster) { if (!isPacAdmin && !isCustomer && !isHostmaster) {
throw new AuthorisationException(loginUser, method, dom); 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)) { if (dom.isPacDomain() && !isHostmaster && !"add".equals(method)) {
throw new AuthorisationException(loginUser, method, dom); throw new AuthorisationException(loginUser, method, dom);
} }