We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
back
I want to allow admins to masquerade other users, because of this, I override the masquerade_authorized? method with something like:
masquerade_authorized?
def masquerade_authorized? admin? end
The "back_masquerade_path" also uses masquerade_authorized?; since I'm masquerading as a non-admin user, I cannot return to my previous user.
I'm doing something wrong?
The text was updated successfully, but these errors were encountered:
You could do something like
def masquerade_authorized? admin? || params[:action] == 'back' end
Sorry, something went wrong.
No branches or pull requests
I want to allow admins to masquerade other users, because of this, I override the
masquerade_authorized?
method with something like:The "back_masquerade_path" also uses
masquerade_authorized?
; since I'm masquerading as a non-admin user, I cannot return to my previous user.I'm doing something wrong?
The text was updated successfully, but these errors were encountered: