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

Method hasShareAccess

lib/Controller/PageController.php:259–263  ·  view source on GitHub ↗
(string $token, array $share)

Source from the content-addressed store, hash-verified

257 }
258
259 private function hasShareAccess(string $token, array $share): bool
260 {
261 return $share['password'] === null
262 || $this->DataSession->isShareAuthenticated($token, $share['password']);
263 }
264
265 private function passwordPrompt(string $token, bool $wrongPassword): TemplateResponse
266 {

Callers 2

indexPublicMethod · 0.95
indexPublicMinMethod · 0.95

Calls 1

isShareAuthenticatedMethod · 0.80

Tested by

no test coverage detected