[ckan-changes] [ckan/ckan] 171546: Show 404 when user has no permission for deleted p...

GitHub noreply at github.com
Tue Jan 12 15:58:55 UTC 2016


  Branch: refs/heads/2805-show-404-for-deleted-datasets
  Home:   https://github.com/ckan/ckan
  Commit: 1715464a5c193345ede9363781fe253e0753ad70
      https://github.com/ckan/ckan/commit/1715464a5c193345ede9363781fe253e0753ad70
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2016-01-12 (Tue, 12 Jan 2016)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/tests/legacy/functional/test_package.py

  Log Message:
  -----------
  Show 404 when user has no permission for deleted package

When a user currently has no permissions to view it, a deleted package
will send them to the login page and log them out.

This PR will instead, when the user has no permission, send a 404.  I
think longer term it may be better for check_access to do this checking.

Should fix #2805




More information about the ckan-changes mailing list