X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseNotifications.php;h=d0c0ae36276857f7087a05e6f15e274216f0636d;hb=7072a7178896c567caf5003e94a8f8045221bd8f;hp=a011961b67ede1026b6ce2737c1b4ba71dedb373;hpb=a11c125f81e48c6793f97ab56e502b6e2f7c8e34;p=friendica.git diff --git a/src/Module/BaseNotifications.php b/src/Module/BaseNotifications.php index a011961b67..d0c0ae3627 100644 --- a/src/Module/BaseNotifications.php +++ b/src/Module/BaseNotifications.php @@ -90,11 +90,11 @@ abstract class BaseNotifications extends BaseModule */ abstract public function getNotifications(); - public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $userSession, array $server, array $parameters = []) + public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $session, array $server, array $parameters = []) { parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); - if (!$userSession->getLocalUserId()) { + if (!$session->getLocalUserId()) { throw new ForbiddenException($this->t('Permission denied.')); }