()
| 142 | } |
| 143 | |
| 144 | private function isAnalyticsEnabledForCurrentUser(): bool { |
| 145 | if ($this->userId === null || $this->userId === '') { |
| 146 | return $this->appManager->isEnabledForUser('analytics'); |
| 147 | } |
| 148 | |
| 149 | $user = $this->userManager->get($this->userId); |
| 150 | if ($user === null) { |
| 151 | return false; |
| 152 | } |
| 153 | |
| 154 | return $this->appManager->isEnabledForUser('analytics', $user); |
| 155 | } |
| 156 | } |
no test coverage detected