WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#36897 new enhancement

"You do not have sufficient permissions to access this page." should have relevant links to go back to dashboard.

Reported by: Nikschavan Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6
Component: Plugins Keywords:
Focuses: ui Cc:

Description

The "You do not have sufficient permissions to access this page." screen has no information where to go after seeing this error on screen.

It would be better if there is a link to go back to the dashboard or maybe even better if the admin bar is visible on the screen with this error message.

Change History (5)

#2 @lukecavanagh
3 years ago

Seems like it would be a good idea to keep the toolbar to be visible, so you can go back to the dashboard.

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


3 years ago

#4 @afercia
3 years ago

  • Focuses accessibility removed

Removing the accessibility focus since this is not a barrier to accessibility, users can go back using the browser's back button which is the most used button on the Internet :) Not closing this ticket though, to let others chime in if they think it's a sensible idea.

#5 @ramiy
3 years ago

I should add that not all the users come from the dashboard. This is a security check to prevent access by unauthorized users, usually after the if ( ! current_user_can( 'xxx' ) ) check. It also stops unauthorized boots and hackers trying to apply different attack vectors on WordPress back-end. I think it should remain a simple message without any links.

BTW, in WP4.6 we updated all the permission error messages (see #34521).

Note: See TracTickets for help on using tickets.