Open pdpinch opened 6 years ago
It appears that the cause of this is an issue in Wagtail where get_user_role(user)
returns None
if the user has some roles, but not the staff role. I.e.
The short-term workaround was to give the user the "staff" permission in the CMS. That cleared the error, but I'd still like to know
a) Why the dashboard needs to access CMS permissions? (Perhaps in order to build the side nav) b) Why this particular CMS role is necessary
AttributeError: 'NoneType' object has no attribute 'permission_names_list'
https://sentry.io/mit-office-of-digital-learning/micromasters/issues/418524267/
This started happening shortly after I granted this user access to the CMS, so it might be related somehow to Wagtail