Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization #22

Closed
jasonlfunk opened this issue Oct 6, 2015 · 2 comments
Closed

Authorization #22

jasonlfunk opened this issue Oct 6, 2015 · 2 comments

Comments

@jasonlfunk
Copy link

Is there a way to do authorization with this as well? I see that there is data validation, but I don't see any authorization. It seems like the Breeze way is to do 'Save Interception'. Is that supported?

@safrazik
Copy link
Owner

safrazik commented Oct 6, 2015

We believe that authorization is a different concern, and it depends on the application. We solved it in our applications simply by denying access to certain routes for certain user roles. You don't have to depend on the library for this purpose - you shouldn't IMHO. You are not limited to use any of the awesome features provided by Doctrine framework - e.g: lifecycle events. Let's do it the PHP way!
P.S: if you have any better suggestion or solution, please comment. We welcome pull requests too :-)

@jasonlfunk
Copy link
Author

Lifecycle events on Doctrine should work in my situation. I'll give that a shot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants