[minor] [oops] use conn.get_value

This commit is contained in:
Anand Doshi 2013-11-18 11:17:19 +05:30
parent bca8d12b0a
commit dd2ab233b5

View file

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