grails-spring-security-acl
grails-spring-security-acl copied to clipboard
Add DirtyCheck annotation
Fixes issue when aclUtilService.changeOwner() doesn't persist changes to database due to AclObjectIdentity doesn't see changed property as dirty so it is never saved.
The DirtyCheck annotation has been added to the AbstractAclObjectIdentity class to improve change tracking. Additionally, a 'change owner' function with corresponding integration tests has been added to the AclUtilServiceSpec class to allow for changing the owner of an object. The tests ensure that the change in ownership is properly reflected in both Acl and persistent data.