[fix] only show submit message when permitted

This commit is contained in:
robert schouten 2017-01-10 10:06:35 +08:00
parent deb2784bda
commit a6ff078925

View file

@ -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) {