[BUGFIX] Hide view-button in access module 18/41718/6
authorAndreas Bouche <andreas.bouche@flagbit.de>
Sat, 5 Mar 2016 13:37:36 +0000 (14:37 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 5 Mar 2016 14:20:24 +0000 (15:20 +0100)
Editing permissions in the access module has no effect on the frontend.
Therefore, the view button is unnecessary here.

Resolves: #68376
Releases: master
Change-Id: Ic5f48320ca54e46e89c8f3b740b457cfcfbbaaae
Reviewed-on: https://review.typo3.org/41718
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Andreas Bouche <andreas.bouche@flagbit.de>
Tested-by: Andreas Bouche <andreas.bouche@flagbit.de>
Reviewed-by: Eugen Lang <laeu1011+gerrit@gmail.com>
Tested-by: Eugen Lang <laeu1011+gerrit@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/beuser/Classes/Controller/PermissionController.php

index 089be95..ffcb96d 100644 (file)
@@ -165,18 +165,6 @@ class PermissionController extends ActionController
             ->setModuleName($moduleName)
             ->setGetVariables($getVars);
         $buttonBar->addButton($shortcutButton);
-
-        if ($this->id > 0) {
-            $iconFactory = $this->view->getModuleTemplate()->getIconFactory();
-            $viewButton = $buttonBar->makeLinkButton()
-                ->setOnClick(BackendUtility::viewOnClick($this->pageInfo['uid'], '',
-                    BackendUtility::BEgetRootLine($this->pageInfo['uid'])))
-                ->setTitle($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.showPage'))
-                ->setIcon($iconFactory->getIcon('actions-document-view', Icon::SIZE_SMALL))
-                ->setHref('#');
-
-            $buttonBar->addButton($viewButton, ButtonBar::BUTTON_POSITION_LEFT, 3);
-        }
     }
 
     /**