Icon for new page should be hidden if no access to pages
If an user doesn't have any access to pages records, he shouldn't even see the icon above the tree.
moreover: if trying to add a page, the error is wrong as it says "Exception
[1.2.1]: Attempt to modify table '%s' without permission". so the %s is not substituted.
Updated by Stefan Neufeind over 7 years ago
- Status changed from Needs Feedback to Accepted
With master (pre-6.3) it sort-of still exists. Above the tree the user still has a "new"-icon. When clicking on that the toolbar of available page-types to create would usually show up. That toolbar is empty. But still it's irritating to have that icon there if you don't have rights to create a page.
Updated by Daniel Goerz over 6 years ago
How to reproduce/test:
- Create a Backend User Group
- Dont grant Right to Create any Doktype
- Assign Group to non-admin BE-User
- Login with that user
This solution has the tiny flaw, that the Icon now appears not until the AJAX Call has finished and is not visible for the duration of the call. This was however imho preferable to showing the icon always and make it disappear if no rights are granted, as users are familiar with stuff being loaded asynchronously rather than stuff disappearing. Additionally the toolbar is empty as well for the duration of the AJAX call.