You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dms/views/dms_file.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@
141
141
</div>
142
142
<div
143
143
role="menuitem"
144
-
t-if="record.permission_write.raw_value and record.active.raw_value"
144
+
t-if="record.permission_write.raw_value and record.active.raw_value and (!record.is_locked.raw_value or (record.is_locked.raw_value and record.is_lock_editor.raw_value))"
145
145
>
146
146
<aname="toggle_active"type="object">
147
147
<iclass="fa fa-archive" />
@@ -150,7 +150,7 @@
150
150
</div>
151
151
<div
152
152
role="menuitem"
153
-
t-if="record.permission_write.raw_value and !record.active.raw_value"
153
+
t-if="record.permission_write.raw_value and !record.active.raw_value and (!record.is_locked.raw_value or (record.is_locked.raw_value and record.is_lock_editor.raw_value))"
154
154
>
155
155
<aname="toggle_active"type="object">
156
156
<iclass="fa fa-archive" />
@@ -190,7 +190,7 @@
190
190
</div>
191
191
<div
192
192
role="menuitem"
193
-
t-if="record.permission_unlink.raw_value"
193
+
t-if="record.permission_unlink.raw_value and (!record.is_locked.raw_value or (record.is_locked.raw_value and record.is_lock_editor.raw_value))"
0 commit comments