search for: authorize_level_1

Displaying 1 result from an estimated 1 matches for "authorize_level_1".

Did you mean: authorize_level_2
2006 Jul 18
6
before_filter chains and halting at an arbitrary filter
...--I''m trying to implement a 2-level authentication system, where I have one before_filter which does general user authentication, and another which does further authorization for a specific controller. I have it set up as follows: before_filter :authorize_level_2 prepend_before_filter :authorize_level_1 which causes authorize_level_1() to run, and then authorize_level_2(). However, the problem is that I want, if authorize_level_1 decides to redirect someone back to the login page, to not run authorize_level_2. Unfortunately it looks like this is what happens, and since authorize_level_2 needs...