mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG If user is logged out getHtmlEditorConfigForCMS() gets called on non object
This can happen if the auto-logout feature logs a user out and the user then tries to open another admin or do an pjax call.
This commit is contained in:
parent
830c10704c
commit
ac64d258b7
@ -267,7 +267,9 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
|||||||
if(empty($_REQUEST['executeForm']) && !$this->request->isAjax()) $this->extend('accessedCMS');
|
if(empty($_REQUEST['executeForm']) && !$this->request->isAjax()) $this->extend('accessedCMS');
|
||||||
|
|
||||||
// Set the members html editor config
|
// Set the members html editor config
|
||||||
|
if(Member::currentUser()) {
|
||||||
HtmlEditorConfig::set_active(Member::currentUser()->getHtmlEditorConfigForCMS());
|
HtmlEditorConfig::set_active(Member::currentUser()->getHtmlEditorConfigForCMS());
|
||||||
|
}
|
||||||
|
|
||||||
// Set default values in the config if missing. These things can't be defined in the config
|
// Set default values in the config if missing. These things can't be defined in the config
|
||||||
// file because insufficient information exists when that is being processed
|
// file because insufficient information exists when that is being processed
|
||||||
|
Loading…
Reference in New Issue
Block a user