|
@@ 285-290 (lines=6) @@
|
| 282 |
|
} |
| 283 |
|
// TODO: check permissions/preconditions in all cases |
| 284 |
|
switch ($notificationType) { |
| 285 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED: |
| 286 |
|
$share = $this->getValidShare( |
| 287 |
|
$providerId, $notification['sharedSecret'] |
| 288 |
|
); |
| 289 |
|
$this->fedShareManager->acceptShare($share); |
| 290 |
|
break; |
| 291 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
| 292 |
|
$share = $this->getValidShare( |
| 293 |
|
$providerId, $notification['sharedSecret'] |
|
@@ 291-296 (lines=6) @@
|
| 288 |
|
); |
| 289 |
|
$this->fedShareManager->acceptShare($share); |
| 290 |
|
break; |
| 291 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
| 292 |
|
$share = $this->getValidShare( |
| 293 |
|
$providerId, $notification['sharedSecret'] |
| 294 |
|
); |
| 295 |
|
$this->fedShareManager->declineShare($share); |
| 296 |
|
break; |
| 297 |
|
case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE: |
| 298 |
|
$shareWith = $notification['shareWith']; |
| 299 |
|
$share = $this->getValidShare( |