From c17e4db25ef7e5fc9199db4efe4e81414dfd90bb Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 12 Apr 2013 21:01:20 +0530 Subject: [PATCH] [profile] [fix] profile's get roles to be used to get roles of any profile --- webnotes/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/profile.py b/webnotes/profile.py index 3ad5ce003d..089787b67b 100644 --- a/webnotes/profile.py +++ b/webnotes/profile.py @@ -47,7 +47,7 @@ class Profile: def get_roles(self): """get list of roles""" if not self.roles: - self.roles = webnotes.get_roles() + self.roles = webnotes.get_roles(self.name) return self.roles def build_doctype_map(self):