Fix in setup role permissions
This commit is contained in:
parent
b05f1a68f5
commit
fd5005567b
@ -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
|
||||
|
||||
#=======================================================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user