diff --git a/code/SecureFileController.php b/code/SecureFileController.php index 1729397..339e35f 100644 --- a/code/SecureFileController.php +++ b/code/SecureFileController.php @@ -66,7 +66,7 @@ public function handleRequest(SS_HTTPRequest $request, DataModel $model) { Security::permissionFailure($self, 'You are not authorised to access this resource. Please log in.'); } else { // File doesn't exist - return $this->httpError(404); + return $self->httpError(404); } }