diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-11 01:03:43 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-11 01:03:43 +0200 |
commit | 8e004cc3e1f2ef14096c8a19771363d29552f5b3 (patch) | |
tree | d7fdcbdaa7f05dd073c86dcccc86bd10175de805 /apps/files_encryption/hooks | |
parent | 33e0dfeecbcfba7c3caa6765f156cd06d7dfdb13 (diff) | |
download | nextcloud-server-8e004cc3e1f2ef14096c8a19771363d29552f5b3.tar.gz nextcloud-server-8e004cc3e1f2ef14096c8a19771363d29552f5b3.zip |
added handling for sharing with link
NOTE: only encryption work atm
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 619a4d1bfee..2d48198939b 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -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
|