CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Entity delete fixes #292

Closed FilipNest closed 8 years ago

FilipNest commented 8 years ago

Found a hook_entity_deleted in sessions.js that is meant to be there to clear the session of a user if their user account is deleted. It wasn't checking entity type though so was deleting any sessions where the userid matched the eid of the deleted entity (page 1 in the case of issue #246 ). The hook also wasn't closed, stopping any subsequent hook_entity_deleted hooks. It's been there since January, glad to have worked out what it was.

While I was there also found that the entity delete form in entity UI was old pre-form system code. I've replaced it with a form.