diff --git a/src/Forms/GridFieldQueuedExportButton.php b/src/Forms/GridFieldQueuedExportButton.php index 0677596..b73d18a 100644 --- a/src/Forms/GridFieldQueuedExportButton.php +++ b/src/Forms/GridFieldQueuedExportButton.php @@ -170,7 +170,7 @@ public function checkExport($gridField, $request = null) $id = $request->param('ID'); $job = QueuedJobDescriptor::get()->filter('Signature', $id)->first(); - if ((int)$job->RunAsID !== Security::getCurrentUser()->ID) { + if ((int)$job->RunAsID !== (int)Security::getCurrentUser()->ID) { return Security::permissionFailure(); } @@ -241,7 +241,7 @@ public function downloadExport($gridField, $request = null) $id = $request->param('ID'); $job = QueuedJobDescriptor::get()->filter('Signature', $id)->first(); - if ((int)$job->RunAsID !== Security::getCurrentUser()->ID) { + if ((int)$job->RunAsID !== (int)Security::getCurrentUser()->ID) { return Security::permissionFailure(); }