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:
@@ -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
|
||||
|
Reference in New Issue
Block a user