This repository has been archived by the owner on Jan 7, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite redirect when logged in
By default the `permission_required` decorator redirects to the login url when you don't have sufficient permissions. The result of this is if a user navigates to a page they don't have permission to view they end up in an infinite redirect loop between the forbidden page and the login page. This change will allow logged out users a chance to login but return forbidden when you don't have sufficient permissions.
- Loading branch information