Write permission to be checked against data base (not against the

intended update)
This commit is contained in:
Peter Hormanns 2013-02-19 15:36:09 +00:00 committed by Purodha
parent dcd2eadd05
commit 950ebee553

View File

@ -193,7 +193,7 @@ public class DomainModuleImpl extends AbstractModuleImpl {
opt.setId(((DomainOption) list.get(0)).getId());
}
}
needsWriteAccessOn(existingEntity, "update");
needsWriteAccessOn(oldDom, "update");
return super.update(existingEntity);
}