‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent Class Reference

Public Member Functions

 __construct (private readonly ?AccessDeniedException $exception, private readonly string $tableName, private readonly string $command, private readonly array $databaseRow,)
 
 allowUserAccess ()
 
 denyUserAccess ()
 
 doesUserHaveAccess ()
 
 getAccessDeniedException ()
 
 getTableName ()
 
 getCommand ()
 
 getDatabaseRow ()
 

Private Attributes

bool $userHasAccess
 

Detailed Description

Listeners to this Event will be able to modify the user access decision for using FormEngine to create or edit a record.

Definition at line 26 of file ModifyEditFormUserAccessEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::__construct ( private readonly ?AccessDeniedException  $exception,
private readonly string  $tableName,
private readonly string  $command,
private readonly array  $databaseRow 
)
Parameters
'new'|'edit'‪$command

Definition at line 33 of file ModifyEditFormUserAccessEvent.php.

Member Function Documentation

◆ allowUserAccess()

◆ denyUserAccess()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::denyUserAccess ( )

◆ doesUserHaveAccess()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::doesUserHaveAccess ( )

◆ getAccessDeniedException()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::getAccessDeniedException ( )

If Core's DataProvider previously denied access, this returns the corresponding exception, null otherwise

Definition at line 70 of file ModifyEditFormUserAccessEvent.php.

◆ getCommand()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::getCommand ( )

Returns the requested command, either new or edit

Returns
‪'new'|'edit'

Definition at line 87 of file ModifyEditFormUserAccessEvent.php.

Referenced by TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect\isAllowedToShowEditForm().

◆ getDatabaseRow()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::getDatabaseRow ( )

◆ getTableName()

TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::getTableName ( )

Member Data Documentation

◆ $userHasAccess

bool TYPO3\CMS\Backend\Form\Event\ModifyEditFormUserAccessEvent::$userHasAccess
private