SEOmatic dashboard links for pages a user doesn't have permissions to access
Hi Andrew, I've created a new User Group named 'SEO Admins'. I want to use this to give trusted client users access to certain SEOmatic pages.
General > Access the control panel - tick General > Access SEOmatic - tick SEOmatic > Dashboard - tick
The above is the minimum permissions I need to assign in order for the user to see the SEOmatic menu item and click on it to load the dashboard.
The bug I'm reporting is that if the user doesn't have access to any or all of the individual permissions in the Edit Global Meta, Edit Content SEO, or Edit Site Settings permissions, I don't think those corresponding links on the dashboard should be clickable links: Screenshot: https://www.dropbox.com/s/661szp45jwx49j9/Screenshot%202021-04-29%20at%2011.13.58.png?dl=0
As the user will then get an unauthorised error: https://www.dropbox.com/s/ktszzoi2ops4fcx/Screenshot%202021-04-29%20at%2011.15.21.png?dl=0
Maybe the permission error is intentional? In which case, this may be a feature request as I think it would be slightly better UX to only have clickable links to the pages that the user has permission to access. Thanks.
Versions
- Plugin version: SEOmatic 3.3.29
- Craft version: Craft CMS 3.5.18