Skip to content
Snippets Groups Projects
Commit 1f37ffa7 authored by Wouter Wolters's avatar Wouter Wolters Committed by Christian Kuhn
Browse files

[CLEANUP] Remove obsolete isLoaded(workspaces) in ext:workspaces

A check for isLoaded('workspaces') in ext:workspaces is obsolete
since the class can only be used if the extension is loaded. Remove
the check.

Resolves: #62842
Releases: master
Change-Id: I1aa305921e57196df6d317b068080e96d137c4a0
Reviewed-on: http://review.typo3.org/33972


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent a1ffc7da
Branches
Tags
No related merge requests found
......@@ -53,10 +53,6 @@ class WorkspaceSelectorToolbarItem implements \TYPO3\CMS\Backend\Toolbar\Toolbar
* @return bool TRUE if user has access, FALSE if not
*/
public function checkAccess() {
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
return FALSE;
}
if ($this->checkAccess === NULL) {
/** @var \TYPO3\CMS\Workspaces\Service\WorkspaceService $wsService */
$wsService = GeneralUtility::makeInstance('TYPO3\\CMS\\Workspaces\\Service\\WorkspaceService');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment