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

Method isAnalyticsEnabledForCurrentUser

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

Source from the content-addressed store, hash-verified

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}

Callers 1

parseMethod · 0.95

Calls 2

isEnabledForUserMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected