HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha Blissenbach
2012-07-18 32fc2cd893fd16ec2676c407e55c401ad4d85e29
Das hatte nichts geändert, also (und sowieso) revert.
1 files modified
6 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java 6 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -150,9 +150,9 @@
        if (admin == null || admin.getName() == null || admin.getName().length() == 0) {
            throw new HSAdminException("domain admin required");
        }
//        if (!admin.getName().equals(oldDom.getUser().getName())) {
//            throw new AuthorisationException(loginUser, "update", existingEntity, "user");
//        }
        if (!admin.getName().equals(oldDom.getUser().getName())) {
            throw new AuthorisationException(loginUser, "update", existingEntity, "user");
        }
        Query q = em.createQuery("SELECT opt FROM " + 
                DomainOption.class.getAnnotation(javax.persistence.Entity.class).name() +
                " opt WHERE opt.name=:optName");