summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/hooks
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-13 15:45:30 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-13 15:45:30 +0200
commit2f4ba9d1e8ca6406abb509ad82869cfb6aca40c1 (patch)
tree2d5b0264a306b92034c031da010effbabc7d6bc8 /apps/files_encryption/hooks
parentd1e2e47592515264bf06fc0d48645e430cddc394 (diff)
downloadnextcloud-server-2f4ba9d1e8ca6406abb509ad82869cfb6aca40c1.tar.gz
nextcloud-server-2f4ba9d1e8ca6406abb509ad82869cfb6aca40c1.zip
if file was shared to user than userIds is just the users Id
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r--apps/files_encryption/hooks/hooks.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index 676507b5236..71a0fc9268b 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -362,13 +362,11 @@ class Hooks {
// for group shares get a list of the group members
if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_GROUP ) {
-
$userIds = \OC_Group::usersInGroup($params['shareWith']);
-
} else if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_LINK ){
-
$userIds = array( $util->getPublicShareKeyId() );
-
+ } else {
+ $userIds = array( $params['shareWith'] );
}
// if we unshare a folder we need a list of all (sub-)files