mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
[share dialog] share link: changed default permission (#4530)
This commit is contained in:
@@ -130,7 +130,7 @@ export const Utils = {
|
|||||||
let editDownloadOption = 'edit_download';
|
let editDownloadOption = 'edit_download';
|
||||||
let editOnly = 'cloud_edit';
|
let editOnly = 'cloud_edit';
|
||||||
let downloadOption = 'preview_download';
|
let downloadOption = 'preview_download';
|
||||||
let permissionOptions = ['preview_only'];
|
let permissionOptions = [];
|
||||||
|
|
||||||
if (itemType === 'library') {
|
if (itemType === 'library') {
|
||||||
permissionOptions.push(downloadOption);
|
permissionOptions.push(downloadOption);
|
||||||
@@ -152,6 +152,7 @@ export const Utils = {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
permissionOptions.push('preview_only');
|
||||||
return permissionOptions;
|
return permissionOptions;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user