[BUGFIX] Hide shortcuts to inaccessible modules for admins as well 02/44802/4
authorPatrick Schriner <patrick.schriner@diemedialen.de>
Thu, 19 Nov 2015 16:21:34 +0000 (17:21 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 21 Nov 2015 16:12:20 +0000 (17:12 +0100)
commit22c63c065650275d847d8d2bb9b9e299333f7bf8
tree70b7b844f6bd1f053e99b82d929e43ccf3427c55
parentcdc8fca10dfe857b5c54a2da74cd88f2a89b8828
[BUGFIX] Hide shortcuts to inaccessible modules for admins as well

Currently the check whether a module is accessible is only done for
non-admins. Clicking on a shortcut that leads to an inaccessible module leads
to an error. Move the check outside so that those shortcuts are at least
not shown after a backend reload.

Change-Id: I0bfcb50913bc4a45ad8442221dc45649f75cf554
Resolves: #71700
Releases: master
Reviewed-on: https://review.typo3.org/44802
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php