‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseUserPermissionCheck Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseUserPermissionCheck:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

array addData (array $result)
 

Protected Member Functions

 getBackendUser ()
 

Detailed Description

Determine user permission for action and check them

Definition at line 37 of file DatabaseUserPermissionCheck.php.

Member Function Documentation

◆ addData()

array TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseUserPermissionCheck::addData ( array  $result)

Set userPermissionOnPage to result array and check access rights.

A couple of different exceptions are thrown here:

  • ‪If something weird happens a top level SPL exception is thrown. This indicates a non recoverable error.
  • ‪If user has no access to whatever should be done, an exception that extends from Form\Exception\AccessDeniedException is thrown. This can be caught by upper level controller code and can be translated to a specific error message that is shown to the user depending on specific exception that is thrown.
Parameters
array$result
Returns
‪array
Exceptions
AccessDeniedException

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 55 of file DatabaseUserPermissionCheck.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\ALL, TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseUserPermissionCheck\getBackendUser(), and TYPO3\CMS\Core\Type\Bitmask\Permission\NOTHING.

◆ getBackendUser()

TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseUserPermissionCheck::getBackendUser ( )
protected