tarlepp / angular-sailsjs-boilerplate

'Boilerplate' for AngularJS + Sails.js
MIT License
307 stars 87 forks source link

Added isOwner policy #91

Closed Tenkir closed 8 years ago

Tenkir commented 8 years ago

Checks if the user is the creator of the target object, or is an admin.Returns a 401 or 403 error if not.

tarlepp commented 8 years ago

This one I really like, thanks! But there is some minor changes that I would like to see before I accept this one.

Also I'm thinking of isAdmin policy that could be attached to create routes. And another thing is assoc handling (add to and remove from) with this policy or a new one.

What are thoughs about my comments?

tarlepp commented 8 years ago

Any progress with this?

tarlepp commented 8 years ago

Any progress with this?

tarlepp commented 8 years ago

Any progress with this?

tarlepp commented 8 years ago

Any progress with this? Going to close this one if replies won't come.

Tenkir commented 8 years ago

Well this PR needs to be closed anyways since the front and backend have been moved into submodules.