Skip to content

Commit

Permalink
update show UNLOCK icon logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lian committed Jan 26, 2021
1 parent cbf12f9 commit 708b3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export const Utils = {

if (isPro) {
if (dirent.is_locked) {
if (dirent.locked_by_me || dirent.lock_owner == 'OnlineOffice' || isRepoOwner || currentRepoInfo.id_admin) {
if (dirent.locked_by_me || dirent.lock_owner == 'OnlineOffice' || isRepoOwner || currentRepoInfo.is_admin) {
list.push(UNLOCK);
}
} else {
Expand Down

0 comments on commit 708b3ee

Please sign in to comment.