Issue Bug Closed

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

Andreas Allacher 10/13/15, 14:18 updated 10/21/17, 17:35

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

Reviews 1