if (BackendUtility::getFuncCheck('edit', ['id' => $pageId])) { // the user can edit the page } else { // the user doesn't have permission to edit the page }
if (BackendUtility::getFuncCheck('delete', ['table' => 'tx_myext_domain_model_mytable', 'uid' => $recordUid])) { // the record can be deleted } else { // the user doesn't have permission to delete the record }These examples use the TYPO3 CMS backend utility package/library.