Skip to content

Poor error messaging in the admin UI when the user is not logged in #1392

@kriswest

Description

@kriswest

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:

  1. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdashboardPart of CISO/OSPO experience to access UItech-debt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions