Quellcode durchsuchen

[Fix] Workflow is not working even if the user has permission to submit the record (#3871)

version-14
rohitwaghchaure vor 8 Jahren
committed by Rushabh Mehta
Ursprung
Commit
57f1d351be
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      frappe/public/js/legacy/form.js

+ 1
- 1
frappe/public/js/legacy/form.js Datei anzeigen

@@ -941,7 +941,7 @@ _f.Frm.prototype.validate_form_action = function(action, resolve) {
// Allow submit, write, cancel and create permissions for read only documents that are assigned by
// workflows if the user already have those permissions. This is to allow for users to
// continue through the workflow states and to allow execution of functions like Duplicate.
if (frappe.workflow.is_read_only(this.doctype, this.docname) && (perms["write"] ||
if (!frappe.workflow.is_read_only(this.doctype, this.docname) && (perms["write"] ||
perms["create"] || perms["submit"] || perms["cancel"])) {
var allowed_for_workflow = true;
}


Laden…
Abbrechen
Speichern