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

Allow for overridable permissions #376

Closed adam-clarey closed 7 years ago

adam-clarey commented 7 years ago

The route permissionsCallback is described here: https://github.com/CityWebConsultants/Iris/pull/124

The entity change simply adds entity.access = false instead of entity = undefined.

This means anyone can hook into this and remove the access = false if they want to allow permission that was previous revoked. Or add access = false if they want to restrict access even though core permissions granted it