Versuchsweise eine Prüfung rausgenommen, um zu schauen, ob da unser Berechtigungsproblem herkommt.

This commit is contained in:
Purodha Blissenbach 2012-07-18 13:39:17 +00:00
parent f27e744cd2
commit 183b555368

View File

@ -150,9 +150,9 @@ public class DomainModuleImpl extends AbstractModuleImpl {
if (admin == null || admin.getName() == null || admin.getName().length() == 0) { if (admin == null || admin.getName() == null || admin.getName().length() == 0) {
throw new HSAdminException("domain admin required"); throw new HSAdminException("domain admin required");
} }
if (!admin.getName().equals(oldDom.getUser().getName())) { // if (!admin.getName().equals(oldDom.getUser().getName())) {
throw new AuthorisationException(loginUser, "update", existingEntity, "user"); // throw new AuthorisationException(loginUser, "update", existingEntity, "user");
} // }
Query q = em.createQuery("SELECT opt FROM " + Query q = em.createQuery("SELECT opt FROM " +
DomainOption.class.getAnnotation(javax.persistence.Entity.class).name() + DomainOption.class.getAnnotation(javax.persistence.Entity.class).name() +
" opt WHERE opt.name=:optName"); " opt WHERE opt.name=:optName");