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

Method dismiss

lib/Controller/WizardController.php:45–54  ·  view source on GitHub ↗

* * @return DataResponse * @throws \OCP\PreConditionNotMetException */

()

Source from the content-addressed store, hash-verified

43 * @throws \OCP\PreConditionNotMetException
44 */
45 #[NoAdminRequired]
46 public function dismiss(): DataResponse
47 {
48 $user = $this->userSession->getUser();
49 if ($user === null) {
50 throw new \RuntimeException("Acting user cannot be resolved");
51 }
52 $this->config->setUserValue($user->getUID(), $this->appName, 'wizzard', 1);
53 return new DataResponse();
54 }
55}

Callers 1

userGuidance.jsFile · 0.45

Calls 1

getUIDMethod · 0.45

Tested by

no test coverage detected