Bug #10266
/accounts/ is not protected by login_required()
Start date:
10 March 2016
Due date:
% Done:
100%
Estimated time:
Patch proposed:
No
Planning:
Description
On authentic-demo.dev.entrouvert.org:
Internal Server Error: /accounts/ Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 154, in get context = self.get_context_data(**kwargs) File "/usr/lib/python2.7/dist-packages/authentic2/views.py", line 380, in get_context_data field = request.user._meta.get_field(field_name) File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 225, in inner return func(self._wrapped, *args) AttributeError: 'AnonymousUser' object has no attribute '_meta'
Associated revisions
History
Updated by Benjamin Dauvergne almost 7 years ago
- Status changed from Nouveau to Résolu (à déployer)
- % Done changed from 0 to 100
Appliqué par commit authentic2|091473a53fa8da2e0f1c922481b39c0c0b77d3bc.
add login_required() decorator to /accounts/ view (fixes #10266)