Ist der Owner der Pac-Domain der Pac-Admin?
This commit is contained in:
parent
9dcae446ee
commit
33d6b04df0
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user