[BUGFIX] Shortcut icons now check permissions
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Be / Buttons / ShortcutViewHelper.php
index a2dff26..7728c5e 100644 (file)
@@ -56,9 +56,9 @@ class ShortcutViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackend
         * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::makeShortcutIcon()
         */
        public function render(array $getVars = array(), array $setVars = array()) {
-               $enableBookmarks = $GLOBALS['BE_USER']->getTSConfigVal('options.enableBookmarks');
+               $mayMakeShortcut = $GLOBALS['BE_USER']->mayMakeShortcut();
 
-               if ($enableBookmarks) {
+               if ($mayMakeShortcut) {
                        $doc = $this->getDocInstance();
                        $currentRequest = $this->controllerContext->getRequest();
                        $extensionName = $currentRequest->getControllerExtensionName();