[minor] [oops] use conn.get_value
This commit is contained in:
parent
bca8d12b0a
commit
dd2ab233b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue