decorators.py
1.63 KB
-
decorators: Only return a 403 if the user is authenticated. · 505ea790
This was the original intention of the replacement decorators, which would incorrectly give 403s to users who aren't logged in. This is especially confusing when @login_required doesn't send you to the login page.
Brodie Rao committed