#6774 ('NoneType' object has no attribute 'has_required_roles')
by Luc Saffre · in Developers · assigned to Luc Saffre
Summary
This error occurred on Jane where we have a user without user_type. I extended User.has_required_roles() to test for user_type being None. And then I changed many places where we called user.user_type.get_required_roles() to user.get_required_roles() to make them more robust.
Children
Comments
- 5 months, 3 weeks ago by Luc Saffre about #6774 ('NoneType' object has no attribute 'has_required_roles') : This bug caused two error messages from LF today because it had slipped into the daily update of these demo sites. C'est la vie. I released yet another Lino to PyPI and then ran pull_demos manually on LF.
- 5 months, 3 weeks ago by Luc Saffre about #6774 ('NoneType' object has no attribute 'has_required_roles') : AnonymousUser didn't yet have a has_required_roles() method.
- 5 months, 3 weeks ago by Luc Saffre about #6774 ('NoneType' object has no attribute 'has_required_roles') : Created new Ticket #6774 ('NoneType' object has no attribute 'has_required_roles').