mirror of
https://github.com/friendica/friendica
synced 2025-05-10 11:44:11 +02:00
Some more deprecated function calls are replaced
This commit is contained in:
parent
bd6616e84f
commit
e12f92e516
30 changed files with 101 additions and 163 deletions
|
@ -59,7 +59,7 @@ abstract class BaseAdmin extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
if (!DI::app()->isSiteAdmin()) {
|
||||
if (!DI::userSession()->isSiteAdmin()) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('You don\'t have access to administration pages.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue