[fix] only show submit message when permitted
This commit is contained in:
parent
deb2784bda
commit
a6ff078925
1 changed files with 1 additions and 0 deletions
|
|
@ -347,6 +347,7 @@ _f.Frm.prototype.refresh_header = function(is_a_different_doc) {
|
|||
this.dashboard.refresh();
|
||||
|
||||
if(this.meta.is_submittable &&
|
||||
frappe.perm.get_perm(this.docname, this.doc).submit &&
|
||||
! this.is_dirty() &&
|
||||
! this.is_new() &&
|
||||
this.doc.docstatus===0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue