Project

General

Profile

Actions

Bug #70651

closed

ShortcutButton throws InvalidArgumentException in ButtonBar if user is not allowed to create shortcuts

Added by Andreas Allacher about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2015-10-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

ShortcutButton has the following isValid method:

 public function isValid()
    {
        $this->preProcess();

        return (
            $this->getBackendUser()->mayMakeShortcut()
            && !empty($this->moduleName)
        );
    }

So if the user isn't allowed to create a shortcut it will throw an exception which is not handled in e.g. EditDocumentController

Actions #1

Updated by Gerrit Code Review about 9 years ago

  • Status changed from New 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/44031

Actions #2

Updated by Mathias Schreiber about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF