|
@@ 319-324 (lines=6) @@
|
| 316 |
|
self::log('NextNote\Fixtures\ShareFix', sprintf($message, $itemSourceName), \OCP\Util::DEBUG); |
| 317 |
|
throw new \Exception($message_t); |
| 318 |
|
} |
| 319 |
|
if (!\OC::$server->getUserManager()->userExists($shareWith)) { |
| 320 |
|
$message = 'Sharing %s failed, because the user %s does not exist'; |
| 321 |
|
$message_t = $l->t('Sharing %s failed, because the user %s does not exist', array($itemSourceName, $shareWith)); |
| 322 |
|
self::log('NextNote\Fixtures\ShareFix', sprintf($message, $itemSourceName, $shareWith), \OCP\Util::DEBUG); |
| 323 |
|
throw new \Exception($message_t); |
| 324 |
|
} |
| 325 |
|
if ($shareWithinGroupOnly) { |
| 326 |
|
$userManager = \OC::$server->getUserManager(); |
| 327 |
|
$groupManager = \OC::$server->getGroupManager(); |
|
@@ 373-378 (lines=6) @@
|
| 370 |
|
} |
| 371 |
|
} |
| 372 |
|
} else if ($shareType === self::SHARE_TYPE_GROUP) { |
| 373 |
|
if (!\OC::$server->getGroupManager()->groupExists($shareWith)) { |
| 374 |
|
$message = 'Sharing %s failed, because the group %s does not exist'; |
| 375 |
|
$message_t = $l->t('Sharing %s failed, because the group %s does not exist', array($itemSourceName, $shareWith)); |
| 376 |
|
self::log('NextNote\Fixtures\ShareFix', sprintf($message, $itemSourceName, $shareWith), \OCP\Util::DEBUG); |
| 377 |
|
throw new \Exception($message_t); |
| 378 |
|
} |
| 379 |
|
if ($shareWithinGroupOnly) { |
| 380 |
|
$group = \OC::$server->getGroupManager()->get($shareWith); |
| 381 |
|
$user = \OC::$server->getUserManager()->get($uidOwner); |