| @@ 62-72 (lines=11) @@ | ||
| 59 | public function read($credential_id) { |
|
| 60 | ||
| 61 | $credential = $this->credentialService->getCredentialById($credential_id, $this->userId); |
|
| 62 | if($credential) { |
|
| 63 | $credential->setExpireTime(0); |
|
| 64 | $this->credentialService->upd($credential); |
|
| 65 | ||
| 66 | $manager = \OC::$server->getNotificationManager(); |
|
| 67 | $notification = $manager->createNotification(); |
|
| 68 | $notification->setApp('passman') |
|
| 69 | ->setObject('credential', $credential_id) |
|
| 70 | ->setUser($this->userId); |
|
| 71 | $manager->markProcessed($notification); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| @@ 248-256 (lines=9) @@ | ||
| 245 | // no need to catch this |
|
| 246 | } |
|
| 247 | ||
| 248 | if ($sr) { |
|
| 249 | $this->shareService->cleanItemRequestsForUser($sr); |
|
| 250 | $manager = \OC::$server->getNotificationManager(); |
|
| 251 | $notification = $manager->createNotification(); |
|
| 252 | $notification->setApp('passman') |
|
| 253 | ->setObject('passman_share_request', $sr->getId()) |
|
| 254 | ->setUser($user_id); |
|
| 255 | $manager->markProcessed($notification); |
|
| 256 | } |
|
| 257 | if ($acl) { |
|
| 258 | $this->shareService->deleteShareACL($acl); |
|
| 259 | } |
|