1. 09 Jan, 2019 9 commits
  2. 07 Jan, 2019 6 commits
  3. 04 Jan, 2019 1 commit
  4. 03 Jan, 2019 2 commits
  5. 02 Jan, 2019 2 commits
  6. 17 Dec, 2018 1 commit
  7. 10 Dec, 2018 1 commit
  8. 07 Dec, 2018 3 commits
  9. 05 Dec, 2018 1 commit
  10. 28 Nov, 2018 3 commits
  11. 27 Nov, 2018 3 commits
  12. 24 Nov, 2018 1 commit
    • Andrei Vagin's avatar
      permissions: add a fast path for non-authenticated users · 142e8fab
      Andrei Vagin authored
      patchwork returns a following back-trace without this patch:
      
      Internal Server Error: /patch/858/
      Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
          response = wrapped_callback(request, *callback_args, **callback_kwargs)
        File "/srv/patchwork/lib/apache2/../../patchwork/views/patch.py", line 34, in patch
          editable = Can(request.user).edit(patch)
        File "/srv/patchwork/lib/apache2/../../patchwork/permissions.py", line 38, in edit
          can.edit(patch.project)))
        File "/srv/patchwork/lib/apache2/../../patchwork/permissions.py", line 32, in edit
          project in self.user.profile.maintainer_projects.all())
        File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 226, in inner
          return func(self._wrapped, *args)
      AttributeError: 'AnonymousUser' object has no attribute 'profile'
      
      Fixes: e876b068 ("permissions: Introduce central point for defining permissions")
      142e8fab
  13. 18 Jun, 2018 1 commit
  14. 15 Jun, 2018 3 commits
  15. 01 Jun, 2018 1 commit
  16. 30 May, 2018 1 commit
  17. 29 May, 2018 1 commit