Bug #26901
closed
Icon for new page should be hidden if no access to pages
Added by Georg Ringer over 13 years ago.
Updated about 7 years ago.
Category:
Backend User Interface
Description
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.
- Status changed from New to Needs Feedback
- Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.4)?
- 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.
- Target version set to 7 LTS
- TYPO3 Version changed from 4.6 to 7
- PHP Version changed from 5.3 to 5.5
- Assignee set to Daniel Goerz
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43629
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.
Regarding #13265 it is questionable if we need that button at all. Opinions?
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43629
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43629
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF