Project

General

Profile

Bug #54757

Erreur contrôle d'accès récupération ods

Added by Frédéric Péters 7 days ago. Updated 7 days ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11 Jun 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

Exception:
  type = '<class 'AttributeError'>', value = ''NoneType' object has no attribute 'is_admin''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/categories.py", line 128, in has_permission
   126
   127     def has_permission(self, permission_name, user):
>  128         if user.is_admin:
   129             return True
   130         permission_roles = getattr(self, '%s_roles' % permission_name, None) or []

  locals:
     permission_name = 'export'
     self = <Category 'Signalements' id:1>
     user = None

[...]

PATH_INFO       '/api/forms/ambroisie/ods'
QUERY_STRING    'NameID=00b0dc684a6d4b998cc041094f03a095&...&signature=nq4WMitK%2BAi5I03F2ha8lTfeh8U8Boxay1367vObiVU%3D'

Files

Associated revisions

Revision 8c84797c (diff)
Added by Frédéric Péters 7 days ago

misc: make payment evolution part inherit from new EvolutionPart class (#54757)

Revision 4255ed16 (diff)
Added by Frédéric Péters 7 days ago

api: don't check category permissions (#54757)

Revision 9f377c72 (diff)
Added by Frédéric Péters 7 days ago

api: don't check category permissions (#54757)

History

#1

Updated by Frédéric Péters 7 days ago

#2

Updated by Benjamin Dauvergne 7 days ago

  • Status changed from Solution proposée to Solution validée
#3

Updated by Frédéric Péters 7 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 9f377c725f99d6926a0c3302453bb9343339f60c
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jun 11 08:48:53 2021 +0200

    api: don't check category permissions (#54757)
#4

Updated by Frédéric Péters 7 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF