Das hatte nichts geändert, also (und sowieso) revert.
This commit is contained in:
parent
183b555368
commit
32fc2cd893
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user