@@ 232-237 (lines=6) @@ | ||
229 | ); |
|
230 | } |
|
231 | ||
232 | if ($this->isSupportedResourceType($resourceType) === false) { |
|
233 | return new JSONResponse( |
|
234 | ['message' => "ResourceType {$resourceType} is not supported"], |
|
235 | Http::STATUS_NOT_IMPLEMENTED |
|
236 | ); |
|
237 | } |
|
238 | ||
239 | if (!$this->userManager->userExists($localShareWith)) { |
|
240 | throw new InvalidShareException("User $localShareWith does not exist"); |
|
@@ 309-314 (lines=6) @@ | ||
306 | ); |
|
307 | } |
|
308 | ||
309 | if ($this->isSupportedResourceType($resourceType) === false) { |
|
310 | return new JSONResponse( |
|
311 | ['message' => "ResourceType {$resourceType} is not supported"], |
|
312 | Http::STATUS_NOT_IMPLEMENTED |
|
313 | ); |
|
314 | } |
|
315 | // TODO: check permissions/preconditions in all cases |
|
316 | switch ($notificationType) { |
|
317 | case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED: |