Skip to content
Snippets Groups Projects
Commit 2f4ba9d1 authored by Björn Schießle's avatar Björn Schießle
Browse files

if file was shared to user than userIds is just the users Id

parent d1e2e475
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment