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
I want to check user permissions and then give him access! how can i add middleware to django-revproxy
The text was updated successfully, but these errors were encountered:
I think this can easily be done by overriding get_request_headers and raising a PermissionDenied exception if the user does not have permission
get_request_headers
class YourView(ProxyView): def get_request_headers(self): if not hasattr(self.request, 'user') or not self.request.user.has_perm("myapp.permission_code"): raise PermissionDenied() return super().get_request_headers()
Sorry, something went wrong.
No branches or pull requests
I want to check user permissions and then give him access!
how can i add middleware to django-revproxy
The text was updated successfully, but these errors were encountered: