Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Add changelog item
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Apr 25, 2022
1 parent fee5570 commit ce26d64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Enforce `share_type` guest if applies

With oC10, the `share_type` is not set to guest, if a user shares a resource with a guest user,
therefore we check check if the property `share_with_user_type` is present and set to `guest`,
if so we manipulate the `share_type` property and set it to guest.

https://github.com/owncloud/owncloud-sdk/pull/1046
6 changes: 1 addition & 5 deletions src/shareInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
* @param {object} ShareInfo containing information like id, url etc. of the share
*/

const USER_TYPE_USER = 0
const USER_TYPE_GUEST = 1
const SHARE_TYPE_USER = 0;
const SHARE_TYPE_GROUP = 1;
const SHARE_TYPE_LINK = 3;
const SHARE_TYPE_GUEST = 4;

class ShareInfo {
Expand All @@ -27,7 +23,7 @@ class ShareInfo {
}

/**
* Oc10 does not emit if a share receiver is a user or a guest,
* oC10 does not emit if a share receiver is a user or a guest,
* therefore we check if the property `share_with_user_type` is present and set to `USER_TYPE_GUEST`,
* if so we manipulate the `share_type` property and set it to `SHARE_TYPE_GUEST`
*/
Expand Down

0 comments on commit ce26d64

Please sign in to comment.