Skip to content

Commit

Permalink
fix: virtual fields are never writable (#24693)
Browse files Browse the repository at this point in the history
(cherry picked from commit d26c67d)
  • Loading branch information
ankush authored and mergify[bot] committed Feb 2, 2024
1 parent ea82c81 commit d1e5514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/model/perm.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ $.extend(frappe.perm, {

// permission
if (p) {
if (p.write && !df.disabled) {
if (p.write && !df.disabled && !df.is_virtual) {
status = "Write";
} else if (p.read) {
status = "Read";
Expand Down

0 comments on commit d1e5514

Please sign in to comment.