mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
Fix in setup role permissions
This commit is contained in:
@@ -46,11 +46,7 @@ class DocType:
|
||||
|
||||
#=======================================================================================================
|
||||
def get_page_lst(self,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))
|
||||
|
||||
ret = sql("select parent from `tabPage Role` where role in ('%s') and parent = '%s'" % ("','".join(webnotes.user.get_roles()),nm))
|
||||
return ret and True or False
|
||||
|
||||
#=======================================================================================================
|
||||
|
||||
Reference in New Issue
Block a user