src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php
private function checkPermission(ActionEvent $event)
    {
        if (true === $event->getEnvironment()->getDataDefinition()->getBasicDefinition()->isEditable()) {
            return true;
        }

        $event->setResponse(
            '<div style="text-align:center; font-weight:bold; padding:40px;">
                    You have no permission for paste a model.
                </div>'
        );

        return false;
    }
private function checkPermission(ActionEvent $event)
    {
        if (true === $event->getEnvironment()->getDataDefinition()->getBasicDefinition()->isEditable()) {
            return true;
        }

        $event->setResponse(
            '<div style="text-align:center; font-weight:bold; padding:40px;">
                    You have no permission for paste a model.
                </div>'
        );

        return false;
    }
private function checkPermission ( ActionEvent $ event ) { if ( true === $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getBasicDefinition ( ) -> isEditable ( ) ) { return true ; } $ event -> setResponse ( '<div style="text-align:center; font-weight:bold; padding:40px;">
                    You have no permission for paste a model.
                </div>' ) ; return false ; }
Check permission for paste a model.

@param ActionEvent $event The action event.

@return bool
Check permission for paste a model .