if file was shared to user than userIds is just the users Id
This commit is contained in:
parent
d1e2e47592
commit
2f4ba9d1e8
1 changed files with 2 additions and 4 deletions
|
@ -362,13 +362,11 @@ class Hooks {
|
||||||
|
|
||||||
// for group shares get a list of the group members
|
// for group shares get a list of the group members
|
||||||
if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_GROUP ) {
|
if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_GROUP ) {
|
||||||
|
|
||||||
$userIds = \OC_Group::usersInGroup($params['shareWith']);
|
$userIds = \OC_Group::usersInGroup($params['shareWith']);
|
||||||
|
|
||||||
} else if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_LINK ){
|
} else if ( $params['shareType'] == \OCP\Share::SHARE_TYPE_LINK ){
|
||||||
|
|
||||||
$userIds = array( $util->getPublicShareKeyId() );
|
$userIds = array( $util->getPublicShareKeyId() );
|
||||||
|
} else {
|
||||||
|
$userIds = array( $params['shareWith'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we unshare a folder we need a list of all (sub-)files
|
// if we unshare a folder we need a list of all (sub-)files
|
||||||
|
|
Loading…
Reference in a new issue