Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
fix bug when sharing links
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydegraaff committed Dec 3, 2016
1 parent 972f0e1 commit 5ad3768
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions zimlet/OwnCloudCommons.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ OwnCloudCommons.prototype._getFirstLink = function(resources, links, callback, s
[resource, resources, links, callback, sharePassword]
);

var DavForZimbraShareType = {
USER: 0,
GROUP: 1,
PUBLIC_LINK: 3,
FEDERATED_CLOUD_SHARE: 6
};

var DavForZimbraSharePermission = {
READ: 1, // Default for public shares.
UPDATE: 2,
CREATE: 4,
DELETE: 8,
SHARE: 16,
ALL: 31 // Default.
};

this._ownCloudConnector.createShare(
resource.getHref(),
DavForZimbraShareType.PUBLIC_LINK,
Expand Down

0 comments on commit 5ad3768

Please sign in to comment.