Skip to content

Commit

Permalink
[TASK] Fix xclass condition (#694)
Browse files Browse the repository at this point in the history
Resolves: #693
  • Loading branch information
webian authored Aug 6, 2023
1 parent d1b7543 commit 8cec2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Xclass/ContentObject/ContentObjectRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function editIcons($content, $params, array $conf = [], $currentRecord =
return $content;
}

$editUid = isset($dataArray['_LOCALIZED_UID']) ?: $currentRecordUID;
$editUid = $dataArray['_LOCALIZED_UID'] ?? $currentRecordUID;
// Edit icons imply that the editing action is generally allowed, assuming page and content element permissions permit it.
if (!array_key_exists('allow', $conf)) {
$conf['allow'] = 'edit';
Expand Down

0 comments on commit 8cec2fe

Please sign in to comment.