mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG adding a more descriptive message when the CMS session times out. It used to say "Forbidden", now it says "Not logged in".
This commit is contained in:
parent
c5442810cf
commit
17e0432252
@ -188,7 +188,10 @@ class Security extends Controller {
|
|||||||
if(Director::is_ajax()) {
|
if(Director::is_ajax()) {
|
||||||
$response = ($controller) ? $controller->getResponse() : new SS_HTTPResponse();
|
$response = ($controller) ? $controller->getResponse() : new SS_HTTPResponse();
|
||||||
$response->setStatusCode(403);
|
$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;
|
return $response;
|
||||||
} else {
|
} else {
|
||||||
// Prepare the messageSet provided
|
// Prepare the messageSet provided
|
||||||
|
Loading…
x
Reference in New Issue
Block a user