Merge pull request #20403 from owncloud/fix_19788
Fix Error message when sharing outside of group
This commit is contained in:
commit
a8ea3acafa
|
@ -697,8 +697,8 @@ class Share extends Constants {
|
||||||
if (empty($inGroup)) {
|
if (empty($inGroup)) {
|
||||||
$message = 'Sharing %s failed, because the user '
|
$message = 'Sharing %s failed, because the user '
|
||||||
.'%s is not a member of any groups that %s is a member of';
|
.'%s is not a member of any groups that %s is a member of';
|
||||||
$message_t = $l->t('Sharing %s failed, because the user %s is not a member of any groups that %s is a member of', array($itemSourceName, $shareWith, $uidOwner));
|
$message_t = $l->t('Sharing %s failed, because the user %s is not a member of any groups that %s is a member of', array($itemName, $shareWith, $uidOwner));
|
||||||
\OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName, $shareWith, $uidOwner), \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('OCP\Share', sprintf($message, $itemName, $shareWith, $uidOwner), \OCP\Util::DEBUG);
|
||||||
throw new \Exception($message_t);
|
throw new \Exception($message_t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue