grails-spring-security-acl icon indicating copy to clipboard operation
grails-spring-security-acl copied to clipboard

Add DirtyCheck annotation

Open jhron opened this issue 1 year ago • 0 comments

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.

jhron avatar May 21 '24 11:05 jhron