coldbox-modules / cbsecurity

Annotation, rule driven security and authentication for ColdBox Applications!
https://coldbox-security.ortusbooks.com
17 stars 18 forks source link

Add a secureSameUser method to throw when passed a different user #29

Closed elpete closed 3 years ago

elpete commented 3 years ago

Just as sameUser returns false when the passed in user is different than the logged in user, secureSameUser will throw when the passed in user is different than the logged in user.