| @@ 67-77 (lines=11) @@ | ||
| 64 | public function read($credential_id) { |
|
| 65 | ||
| 66 | $credential = $this->credentialService->getCredentialById($credential_id, $this->userId); |
|
| 67 | if($credential) { |
|
| 68 | $credential->setExpireTime(0); |
|
| 69 | $this->credentialService->upd($credential); |
|
| 70 | ||
| 71 | $manager = \OC::$server->getNotificationManager(); |
|
| 72 | $notification = $manager->createNotification(); |
|
| 73 | $notification->setApp('passman') |
|
| 74 | ->setObject('credential', $credential_id) |
|
| 75 | ->setUser($this->userId); |
|
| 76 | $manager->markProcessed($notification); |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| @@ 240-248 (lines=9) @@ | ||
| 237 | // no need to catch this |
|
| 238 | } |
|
| 239 | ||
| 240 | if ($sr) { |
|
| 241 | $this->shareService->cleanItemRequestsForUser($sr); |
|
| 242 | $manager = \OC::$server->getNotificationManager(); |
|
| 243 | $notification = $manager->createNotification(); |
|
| 244 | $notification->setApp('passman') |
|
| 245 | ->setObject('passman_share_request', $sr->getId()) |
|
| 246 | ->setUser($user_id); |
|
| 247 | $manager->markProcessed($notification); |
|
| 248 | } |
|
| 249 | if ($acl) { |
|
| 250 | $this->shareService->deleteShareACL($acl); |
|
| 251 | } |
|