Cannot adapt UnauthenticatedPrincipal to IPerson

Bug #321216 reported by Filip Sufitchi
2
Affects Status Importance Assigned to Milestone
SchoolTool
New
Medium
Justas Sadzevičius

Bug Description

Whenever a piece of code needs to adapt the Principal to a Person to get the current user, that code fails because IPerson cannot adapt UnauthenticatedPrincipal, throwing a TypeError.
The adapter should return None.

Tags: code-cleanup
tags: added: code-cleanup
Changed in schooltool:
assignee: nobody → Justas Sadzevičius (justas-pov)
Changed in schooltool:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.