HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-06-12 33d6b04df0e4471c4bb3c64f00671f13585d3f77
Ist der Owner der Pac-Domain der Pac-Admin?
1 files modified
3 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java 3 ●●●●● patch | view | raw | blame | history
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);
            }