1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Merge branch '7.1' into master

This commit is contained in:
lian
2020-08-19 14:01:17 +08:00
107 changed files with 13230 additions and 14827 deletions

View File

@@ -1289,12 +1289,12 @@ export const Utils = {
return true;
}
if (dirent && dirent.type === 'file') {
let hasGenerateShareLinkPermission = false;
if (canGenerateShareLink && (userDirPermission == 'rw' || userDirPermission == 'r')) {
hasGenerateShareLinkPermission = true;
// for 'file' & 'dir'
if (dirent) {
if (userDirPermission == 'rw' || userDirPermission == 'r') {
// can generate internal link
return true;
}
return hasGenerateShareLinkPermission;
}
// the root path or the dirent type is dir