Skip to content
Snippets Groups Projects
Commit 307071cf authored by Robin Appelman's avatar Robin Appelman
Browse files

Keep the share permissions from mountpoints

parent 27055880
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,8 @@
var sharePermissions = fileData.permissions;
if (fileData.mountType && fileData.mountType === "external-root"){
// for external storages we cant use the permissions of the mountpoint
sharePermissions = OC.PERMISSION_ALL;
// instead we show all permissions and only use the share permissions from the mountpoint to handle resharing
sharePermissions = sharePermissions | (OC.PERMISSION_ALL & ~OC.PERMISSION_SHARE);
}
if (fileData.type === 'file') {
// files can't be shared with delete permissions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment