webnotes.user.roles deprecated to webnotes.user.get_roles()
diff --git a/startup/event_handlers.py b/startup/event_handlers.py
index f526c73..4808298 100644
--- a/startup/event_handlers.py
+++ b/startup/event_handlers.py
@@ -115,7 +115,7 @@
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: