Das hatte nichts geändert, also (und sowieso) revert.

This commit is contained in:
Purodha Blissenbach 2012-07-18 13:44:32 +00:00
parent 183b555368
commit 32fc2cd893

View File

@ -150,9 +150,9 @@ public class DomainModuleImpl extends AbstractModuleImpl {
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");