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
hi... i want to prevent ordinary users to get to admin panel... like redirect them or showing 404 error or... what should i have done? thanks
The text was updated successfully, but these errors were encountered:
Refer https://github.com/qor/qor-example/blob/master/config/auth/admin_auth.go
Return nil in the GetCurrentUser
nil
GetCurrentUser
And set it to Admin, like
Admin
https://github.com/qor/qor-example/blob/master/config/admin/admin.go#L45
Sorry, something went wrong.
No branches or pull requests
hi...
i want to prevent ordinary users to get to admin panel...
like redirect them or showing 404 error or...
what should i have done?
thanks
The text was updated successfully, but these errors were encountered: