Skip to content
Snippets Groups Projects
Commit 8e004cc3 authored by Florin Peter's avatar Florin Peter
Browse files

added handling for sharing with link

NOTE: only encryption work atm
parent 33e0dfee
No related branches found
No related tags found
No related merge requests found
...@@ -296,6 +296,9 @@ class Hooks { ...@@ -296,6 +296,9 @@ class Hooks {
// check if we share to a group // check if we share to a group
if($params['shareType'] === \OCP\Share::SHARE_TYPE_GROUP) { if($params['shareType'] === \OCP\Share::SHARE_TYPE_GROUP) {
$usersSharing[] = reset(\OC_Group::usersInGroup($params['shareWith'])); $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 { } else {
// Because this is a pre_share hook, the user // Because this is a pre_share hook, the user
// being shared to is not yet included; add them // being shared to is not yet included; add them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment