old boot.php functions replaced in src/module
This commit is contained in:
committed by
Hypolite Petovan
parent
ba9f145ef7
commit
d2da2492b7
@@ -52,7 +52,7 @@ abstract class BaseAdmin extends BaseModule
|
||||
*/
|
||||
public static function checkAdminAccess(bool $interactive = false)
|
||||
{
|
||||
if (!local_user()) {
|
||||
if (!Session::getLocalUser()) {
|
||||
if ($interactive) {
|
||||
DI::sysmsg()->addNotice(DI::l10n()->t('Please login to continue.'));
|
||||
Session::set('return_path', DI::args()->getQueryString());
|
||||
|
||||
Reference in New Issue
Block a user