added handling for sharing with link

NOTE: only encryption work atm
This commit is contained in:
Florin Peter 2013-05-11 01:03:43 +02:00
parent 33e0dfeecb
commit 8e004cc3e1
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ class Hooks {
// check if we share to a group
if($params['shareType'] === \OCP\Share::SHARE_TYPE_GROUP) {
$usersSharing[] = reset(\OC_Group::usersInGroup($params['shareWith']));
// check if we share with link
} else if($params['shareType'] === \OCP\Share::SHARE_TYPE_LINK) {
$usersSharing[] = 'owncloud';
} else {
// Because this is a pre_share hook, the user
// being shared to is not yet included; add them