Hi @argosmedia,
This means that the view you have selected doesn’t have permission to see the page you are on.
For example:
– You are on the plugins page
– You change your view to the “Author” role
– This role does not have permission to view the plugin’s page
– WordPress display’s the errormessage
– This plugin then hooks into that message and allows you to reset your view.
Hope this helps!
Yup, I was on the plugins page π
Starting on the dashboard it works fine!
Thanks for your fast response (and for the plugin).
Regards,
Jurgen
No problem!
I am thinking about doing a redirect to the dashboard with a notice for these kind of situations but not sure if this would be best in all cases since I can imagine some developers would like to see the error screen for testing.
Also, if you like the plugin, please consider leaving a nice review, it will help the plugin grow π
Thanks! Jory
Yes, I guess some kind of notice, hint and/or redirect could be useful.
Review added π
Hi @argosmedia,
Thanks!
And I’ve added an issue on GitHub for this topic.
If you have any thoughts on this, let me know there!
https://github.com/JoryHogeveen/view-admin-as/issues/10
Regards, Jory
v1.6 is live with an improved 403 page hook!
I didn’t choose to do a redirect because I think an error page gives a better idea of what a role/user can view within the installation.
Yep, that’s a nice solution!
Maybe the notice can be improved a bit. There is double use of the word “view”, but with different meanings. Instead of:
“The view you have selected is not permitted to view this page”
maybe this is somewhat nicer:
“The user/role you have selected is not permitted to view (or use, or access) this page”
-
This reply was modified 9 years, 7 months ago by
argosmedia.
“access” sounds nice, thanks!