* * @return DataResponse * @throws \OCP\PreConditionNotMetException */
()
| 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 | } |