[patch] No spinner in has_permission

This commit is contained in:
Rushabh Mehta 2013-12-04 11:29:09 +05:30
parent 03adcd8da1
commit f0d564538e

View file

@ -160,6 +160,7 @@ $.extend(wn, {
has_permission: function(doctype, docname, perm_type, callback) {
return wn.call({
method: "webnotes.client.has_permission",
no_spinner: true,
args: {doctype: doctype, docname: docname, perm_type: perm_type},
callback: function(r) {
if(!r.exc && r.message.has_permission) {