diff --git a/app/Services/DatatableService.php b/app/Services/DatatableService.php index df68b89c708b..d9924f7f5867 100644 --- a/app/Services/DatatableService.php +++ b/app/Services/DatatableService.php @@ -127,11 +127,9 @@ class DatatableService } } - if ($model->deleted_at && $model->deleted_at != '0000-00-00') { - if ($can_edit) { - $dropdown_contents .= "
  • entityType}('restore', {$model->public_id})\">" - . mtrans($datatable->entityType, "restore_{$datatable->entityType}") . '
  • '; - } + if ($model->deleted_at && $model->deleted_at != '0000-00-00' && $can_edit) { + $dropdown_contents .= "
  • entityType}('restore', {$model->public_id})\">" + . mtrans($datatable->entityType, "restore_{$datatable->entityType}") . '
  • '; } if (property_exists($model, 'is_deleted') && ! $model->is_deleted && $can_edit) {