| @@ 154-156 (lines=3) @@ | ||
| 151 | } else { |
|
| 152 | return new DataResponse(['msg' => 'Not authorized'], Http::STATUS_UNAUTHORIZED); |
|
| 153 | } |
|
| 154 | if ($this->config->getAppValue('passman', 'user_sharing_enabled', 1) === 0 || $this->config->getAppValue('passman', 'user_sharing_enabled', 1) === '0') { |
|
| 155 | return new DataResponse(['msg' => 'Not authorized'], Http::STATUS_UNAUTHORIZED); |
|
| 156 | } |
|
| 157 | } |
|
| 158 | ||
| 159 | $link = ''; // @TODO create direct link to credential |
|
| @@ 80-82 (lines=3) @@ | ||
| 77 | } |
|
| 78 | ||
| 79 | private function isSharingEnabled() { |
|
| 80 | if ($this->config->getAppValue('passman', 'link_sharing_enabled', 1) === 0 || $this->config->getAppValue('passman', 'link_sharing_enabled', 1) === '0') { |
|
| 81 | return new JSONResponse(array()); |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|