mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Fix in setup role permissions
This commit is contained in:
@@ -46,11 +46,7 @@ class DocType:
|
|||||||
|
|
||||||
#=======================================================================================================
|
#=======================================================================================================
|
||||||
def get_page_lst(self,nm):
|
def get_page_lst(self,nm):
|
||||||
|
ret = sql("select parent from `tabPage Role` where role in ('%s') and parent = '%s'" % ("','".join(webnotes.user.get_roles()),nm))
|
||||||
r1 = cstr(webnotes.user.get_roles()).replace('[','').replace(']','')
|
|
||||||
|
|
||||||
ret = sql("select parent from `tabPage Role` where role in (%s) and parent = '%s'"%(r1,nm))
|
|
||||||
|
|
||||||
return ret and True or False
|
return ret and True or False
|
||||||
|
|
||||||
#=======================================================================================================
|
#=======================================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user