This adds an EventListener that deletes security information (EntityReferences) when any entity tracked by Rhino.Security is deleted from the system.
I had to use some reflection code to get the entity security key without being able to use the generic method, which also catches and ignores exceptions from ServiceLocator.GetInstance(), but I couldn't think of any better way to get the job done.
Fix for orphaned EntityReference when entity is detached from all Ent…
Undo previous fix; removed the RemoveOrphanedEntityReference method f…
- Will use event listener to fix bug
Event listener to delete security information when an entity is delet…
…ed from the system.
Added code to DeleteEntryEventListener to also delete Permissions and…
… EntitiyGroup associations.
Signed-off-by: Dan Smith <firstname.lastname@example.org>