Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function dismiss(): DataResponse |
||
52 | { |
||
53 | $user = $this->userSession->getUser(); |
||
54 | if ($user === null) { |
||
55 | throw new \RuntimeException("Acting user cannot be resolved"); |
||
56 | } |
||
57 | $this->config->setUserValue($user->getUID(), $this->AppName, 'wizzard', 1); |
||
58 | return new DataResponse(); |
||
59 | } |
||
60 | } |