Describe the bug
The admin UI has poor error messaging when the user is not logged in, in some cases. For example, a reviewer attempting to approve or reject a push is told 'You are not authorized to approve/reject" rather than being told they are not logged in or redirected to the login form.
Similarly an a committer attempting to cancel a commit is told 'You are not authorized to cancel" rather than being told they are not logged in or redirected to the login form.
To Reproduce
Steps to reproduce the behavior:
- Attempt to reject, approve or cancel a push when not logged in.
Expected behavior
An accurate error message is reports OR (better) the user is redirected to the login form.
Describe the bug
The admin UI has poor error messaging when the user is not logged in, in some cases. For example, a reviewer attempting to approve or reject a push is told 'You are not authorized to approve/reject" rather than being told they are not logged in or redirected to the login form.
Similarly an a committer attempting to cancel a commit is told 'You are not authorized to cancel" rather than being told they are not logged in or redirected to the login form.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An accurate error message is reports OR (better) the user is redirected to the login form.