()
| 160 | } |
| 161 | |
| 162 | private function isAnalyticsEnabledForCurrentUser(): bool { |
| 163 | if ($this->userId === null || $this->userId === '') { |
| 164 | return $this->appManager->isEnabledForUser('analytics'); |
| 165 | } |
| 166 | |
| 167 | $user = $this->userManager->get($this->userId); |
| 168 | if ($user === null) { |
| 169 | return false; |
| 170 | } |
| 171 | |
| 172 | return $this->appManager->isEnabledForUser('analytics', $user); |
| 173 | } |
| 174 | } |
no test coverage detected