Skip to content
Snippets Groups Projects
Commit 8d512561 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix constants used for "authentication needed" status in AJAX handlers. (#1201)

parent 985955e6
Branches
Tags
No related merge requests found
...@@ -100,7 +100,7 @@ class DeleteRecordComment extends AbstractBase implements TranslatorAwareInterfa ...@@ -100,7 +100,7 @@ class DeleteRecordComment extends AbstractBase implements TranslatorAwareInterfa
if ($this->user === false) { if ($this->user === false) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('You must be logged in first'), $this->translate('You must be logged in first'),
self::STATUS_HTTP_AUTH self::STATUS_HTTP_NEED_AUTH
); );
} }
......
...@@ -64,7 +64,7 @@ class GetLibraryPickupLocations extends AbstractIlsAndUserAction ...@@ -64,7 +64,7 @@ class GetLibraryPickupLocations extends AbstractIlsAndUserAction
if (!$this->user) { if (!$this->user) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('You must be logged in first'), $this->translate('You must be logged in first'),
self::STATUS_HTTP_AUTH self::STATUS_HTTP_NEED_AUTH
); );
} }
......
...@@ -64,7 +64,7 @@ class GetRequestGroupPickupLocations extends AbstractIlsAndUserAction ...@@ -64,7 +64,7 @@ class GetRequestGroupPickupLocations extends AbstractIlsAndUserAction
if (!$this->user) { if (!$this->user) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('You must be logged in first'), $this->translate('You must be logged in first'),
self::STATUS_HTTP_AUTH self::STATUS_HTTP_NEED_AUTH
); );
} }
......
...@@ -134,7 +134,7 @@ class GetSaveStatuses extends AbstractBase implements TranslatorAwareInterface ...@@ -134,7 +134,7 @@ class GetSaveStatuses extends AbstractBase implements TranslatorAwareInterface
if (!$this->user) { if (!$this->user) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('You must be logged in first'), $this->translate('You must be logged in first'),
self::STATUS_HTTP_AUTH self::STATUS_HTTP_NEED_AUTH
); );
} }
......
...@@ -93,7 +93,7 @@ class TagRecord extends AbstractBase implements TranslatorAwareInterface ...@@ -93,7 +93,7 @@ class TagRecord extends AbstractBase implements TranslatorAwareInterface
if (!$this->user) { if (!$this->user) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('You must be logged in first'), $this->translate('You must be logged in first'),
self::STATUS_HTTP_AUTH self::STATUS_HTTP_NEED_AUTH
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment