webnotes.user.roles deprecated to webnotes.user.get_roles()

This commit is contained in:
Rushabh Mehta
2012-12-12 15:58:46 +05:30
parent 686022f777
commit d1b2afcd18
2 changed files with 4 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ def check_if_expired():
from webnotes.utils import formatdate
msg = """Oops! Your subscription expired on <b>%s</b>.<br>""" % formatdate(conf.expires_on)
if 'System Manager' in webnotes.user.roles:
if 'System Manager' in webnotes.user.get_roles():
msg += """Just drop in a mail at <b>support@erpnext.com</b> and
we will guide you to get your account re-activated."""
else: