fix: virtual fields are never writable (#24693)

This commit is contained in:
Ankush Menat 2024-02-02 13:37:46 +05:30 committed by GitHub
parent 81d8a0b8b9
commit d26c67df75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";