mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
webnotes.user.roles deprecated to webnotes.user.get_roles()
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user