mirror of
https://github.com/friendica/friendica
synced 2025-04-23 14:30:11 +00:00
old boot.php functions replaced in src/module
This commit is contained in:
parent
ba9f145ef7
commit
d2da2492b7
21 changed files with 103 additions and 86 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue