@@ 296-299 (lines=4) @@ | ||
293 | } |
|
294 | ||
295 | if ($share->getNode() instanceof \OCP\Files\File) { |
|
296 | if ($share->getPermissions() & \OCP\Constants::PERMISSION_DELETE) { |
|
297 | $message_t = $this->l->t('Files can\'t be shared with delete permissions'); |
|
298 | throw new GenericShareException($message_t); |
|
299 | } |
|
300 | if ($share->getPermissions() & \OCP\Constants::PERMISSION_CREATE) { |
|
301 | $message_t = $this->l->t('Files can\'t be shared with create permissions'); |
|
302 | throw new GenericShareException($message_t); |
|
@@ 300-303 (lines=4) @@ | ||
297 | $message_t = $this->l->t('Files can\'t be shared with delete permissions'); |
|
298 | throw new GenericShareException($message_t); |
|
299 | } |
|
300 | if ($share->getPermissions() & \OCP\Constants::PERMISSION_CREATE) { |
|
301 | $message_t = $this->l->t('Files can\'t be shared with create permissions'); |
|
302 | throw new GenericShareException($message_t); |
|
303 | } |
|
304 | } |
|
305 | } |
|
306 |