From 8e004cc3e1f2ef14096c8a19771363d29552f5b3 Mon Sep 17 00:00:00 2001
From: Florin Peter <github@florin-peter.de>
Date: Sat, 11 May 2013 01:03:43 +0200
Subject: [PATCH] added handling for sharing with link NOTE: only encryption
 work atm

---
 apps/files_encryption/hooks/hooks.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index 619a4d1bfe..2d48198939 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
-- 
GitLab