From dd2ab233b570d0028beb0fe02cbad0c5d384d084 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 18 Nov 2013 11:17:19 +0530 Subject: [PATCH] [minor] [oops] use conn.get_value --- webnotes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/__init__.py b/webnotes/__init__.py index c1558b9efb..3ae0de2533 100644 --- a/webnotes/__init__.py +++ b/webnotes/__init__.py @@ -336,7 +336,7 @@ def has_permission(doctype, ptype="read", refdoc=None): """check if user has permission""" from webnotes.utils import cint - if session.user=="Administrator" or webnotes.conn.get_value("DocType", doctype, "istable")==1: + if session.user=="Administrator" or conn.get_value("DocType", doctype, "istable")==1: return True meta = get_doctype(doctype)