Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG adding a more descriptive message when the CMS session times out.…

… It used to say "Forbidden", now it says "Not logged in".
  • Loading branch information...
commit 17e04322520b1ec5a03cf8babd0ab1a480df0871 1 parent c544281
@candidasa candidasa authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 security/Security.php
View
5 security/Security.php
@@ -188,7 +188,10 @@ public static function permissionFailure($controller = null, $messageSet = null)
if(Director::is_ajax()) {
$response = ($controller) ? $controller->getResponse() : new SS_HTTPResponse();
$response->setStatusCode(403);
- if(!Member::currentUser()) $response->setBody('NOTLOGGEDIN:');
+ if(!Member::currentUser()) {
+ $response->setBody(_t('ContentController.NOTLOGGEDIN','Not logged in'));
+ $response->setStatusDescription(_t('ContentController.NOTLOGGEDIN','Not logged in'));
+ }
return $response;
} else {
// Prepare the messageSet provided
Please sign in to comment.
Something went wrong with that request. Please try again.