configProvider = $configProvider; $this->authSession = $authSession; } public function execute(): bool { if (!$this->authSession->isLoggedIn()) { return false; } if ($this->isLoggingEnabled === null) { $this->isLoggingEnabled = $this->configProvider->isEnabledLogAllAdmins() || in_array($this->authSession->getUser()->getId(), $this->configProvider->getAdminUsers()); } return $this->isLoggingEnabled; } }