Skip to content
Snippets Groups Projects
Commit 458c5813 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fix controls for records

parent 1ce6c9ad
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,11 @@ class ControlViewHelper extends AbstractViewHelper {
public function render($table, $row) {
/** @var DatabaseRecordList $databaseRecordList */
$databaseRecordList = GeneralUtility::makeInstance(DatabaseRecordList::class);
if (!is_array($row)) {
$row = BackendUtility::getRecord($table, $row->getUid());
}
$pageInfo = BackendUtility::readPageAccess($row['pid'], $GLOBALS['BE_USER']->getPagePermsClause(1));
$databaseRecordList->calcPerms = $GLOBALS['BE_USER']->calcPerms($pageInfo);
return $databaseRecordList->makeControl($table, $row);
......
......@@ -23,6 +23,11 @@
<span>{job.title} - {job.location.0.city}</span>
</a>
</td>
<td nowrap="nowrap" class="col-control">
<f:format.raw>
<sg:backend.control table="tx_sgjobs_domain_model_jobs" row="{job}" />
</f:format.raw>
</td>
</tr>
</f:for>
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment