Fix in setup role permissions

This commit is contained in:
Rushabh Mehta 2012-02-06 06:34:04 +01:00
parent b05f1a68f5
commit fd5005567b

View File

@ -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
#=======================================================================================================