MCPcopy Create free account
hub / github.com/Rello/analytics / isAnalyticsEnabledForCurrentUser

Method isAnalyticsEnabledForCurrentUser

lib/Activity/Provider.php:162–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 1

parseMethod · 0.95

Calls 2

isEnabledForUserMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected