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

Redirect for unauthorized user #3

Closed
jifeon opened this issue Jul 19, 2014 · 1 comment
Closed

Redirect for unauthorized user #3

jifeon opened this issue Jul 19, 2014 · 1 comment

Comments

@jifeon
Copy link

jifeon commented Jul 19, 2014

Suppose I have a number of pages which can be accessed only by authorized users. Of course I can check authentication inside each page and redirect user to login page if he is unauthorized. But I do not want to copy any piece of code. By the way how can I do redirect?
I think the special place must exist where I can define the rules for the privacy policy (maybe it is routing?)

@apsavin
Copy link
Owner

apsavin commented Oct 4, 2014

You can redefine AppKernel#_handlePage403Error method now. All rules for privacy policy must be in API server only.

@apsavin apsavin closed this as completed Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants