From a6ff0789256f9fd820adc40e9dbedbfb1fcd0ce6 Mon Sep 17 00:00:00 2001 From: robert schouten Date: Tue, 10 Jan 2017 10:06:35 +0800 Subject: [PATCH] [fix] only show submit message when permitted --- frappe/public/js/legacy/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/legacy/form.js b/frappe/public/js/legacy/form.js index 54b70986f5..25930348b3 100644 --- a/frappe/public/js/legacy/form.js +++ b/frappe/public/js/legacy/form.js @@ -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) {