|
@@ 306-312 (lines=7) @@
|
| 303 |
|
} |
| 304 |
|
// TODO: check permissions/preconditions in all cases |
| 305 |
|
switch ($notificationType) { |
| 306 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED: |
| 307 |
|
$this->ocmMiddleware->assertOutgoingSharingEnabled(); |
| 308 |
|
$share = $this->ocmMiddleware->getValidShare( |
| 309 |
|
$providerId, $notification['sharedSecret'] |
| 310 |
|
); |
| 311 |
|
$this->fedShareManager->acceptShare($share); |
| 312 |
|
break; |
| 313 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
| 314 |
|
$this->ocmMiddleware->assertOutgoingSharingEnabled(); |
| 315 |
|
$share = $this->ocmMiddleware->getValidShare( |
|
@@ 313-319 (lines=7) @@
|
| 310 |
|
); |
| 311 |
|
$this->fedShareManager->acceptShare($share); |
| 312 |
|
break; |
| 313 |
|
case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
| 314 |
|
$this->ocmMiddleware->assertOutgoingSharingEnabled(); |
| 315 |
|
$share = $this->ocmMiddleware->getValidShare( |
| 316 |
|
$providerId, $notification['sharedSecret'] |
| 317 |
|
); |
| 318 |
|
$this->fedShareManager->declineShare($share); |
| 319 |
|
break; |
| 320 |
|
case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE: |
| 321 |
|
$this->ocmMiddleware->assertOutgoingSharingEnabled(); |
| 322 |
|
$this->ocmMiddleware->assertNotNull( |