Projet

Général

Profil

Bug #53864

'RestrictedApiUser' object has no attribute 'anonymous'

Ajouté par Frédéric Péters il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
07 mai 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'AttributeError'>', value = ''RestrictedApiUser' object has no attribute 'anonymous''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/forms/common.py", line 170, in check_auth
   168         else:
   169             user = get_request().user
>  170         if user and not user.anonymous:
   171             if self.filled.is_submitter(user):
   172                 mine = True

  locals:
     api_call = True
     mine = False
     self = <wcs.api.ApiFormdataPage object at 0x7f7e07a96630>
     session = <Session at 7f7e075a5d68: None>
     user = <wcs.api_access.ApiAccess.get_as_api_user.<locals>.RestrictedApiUser object at 0x7f7e07a4e780>
...
REQUEST_URI     '/api/forms/inscription-aux-activites/1/?full=on'

Fichiers

Révisions associées

Révision 3a641631 (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

api: mark role-restricted api user as non anonymous (#53864)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 3 ans

#3

Mis à jour par Thomas Noël il y a presque 3 ans

  • Statut changé de Solution proposée à Solution validée

"Je vous l'avais bien dit".

#4

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 3a641631b1b6afd88e4995b9fd66372d08f971a9
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri May 7 18:52:01 2021 +0200

    api: mark role-restricted api user as non anonymous (#53864)
#5

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF