mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 15:26:19 +00:00
add lock_owner (#2881)
* add lock_owner * repair lock bug * permission bug repair
This commit is contained in:
@@ -55,8 +55,10 @@ class DirentMenu extends React.Component {
|
||||
}
|
||||
menuList.push('Copy');
|
||||
if (isPro) {
|
||||
if (dirent.is_locked && dirent.locked_by_me) {
|
||||
menuList.push('Unlock');
|
||||
if (dirent.is_locked) {
|
||||
if (dirent.locked_by_me || (dirent.lock_owner === "OnlineOffice" && permission === 'rw')) {
|
||||
menuList.push('Unlock');
|
||||
}
|
||||
} else {
|
||||
menuList.push('Lock');
|
||||
}
|
||||
|
Reference in New Issue
Block a user