Fix error in return value of authentication.py can_edit_or_fail.