[ckan-changes] [ckan/ckan] ab45d1: [#1471] Fix dataset deletion authorization for uno...

GitHub noreply at github.com
Fri Jan 31 11:31:21 UTC 2014


  Branch: refs/heads/release-v2.2
  Home:   https://github.com/ckan/ckan
  Commit: ab45d14e5411285c537e1e903f904d25390b341b
      https://github.com/ckan/ckan/commit/ab45d14e5411285c537e1e903f904d25390b341b
  Author: amercader <amercadero at gmail.com>
  Date:   2014-01-31 (Fri, 31 Jan 2014)

  Changed paths:
    M ckan/logic/auth/delete.py

  Log Message:
  -----------
  [#1471] Fix dataset deletion authorization for unowned datasets

We are basically deferring the whole package_delete auth function to
package_update, because deletions are basically changing the state field
of a dataset from 'active' to 'deleted'.


  Commit: bb8ae56a74798a3bf091e0a409a78baa1388759d
      https://github.com/ckan/ckan/commit/bb8ae56a74798a3bf091e0a409a78baa1388759d
  Author: amercader <amercadero at gmail.com>
  Date:   2014-01-31 (Fri, 31 Jan 2014)

  Changed paths:
    M ckan/logic/auth/delete.py

  Log Message:
  -----------
  [#1471] Call proper function on package_delete


  Commit: 7eba75e670b4e0404aa9c347adc522274da32cb5
      https://github.com/ckan/ckan/commit/7eba75e670b4e0404aa9c347adc522274da32cb5
  Author: amercader <amercadero at gmail.com>
  Date:   2014-01-31 (Fri, 31 Jan 2014)

  Changed paths:
    M ckan/tests/functional/test_package.py

  Log Message:
  -----------
  [#1471] Fix old test

Since organizations were implemented, any unowned dataset can be edited
(and thus deleted) by any user.
We will probably improve this in th future using the creator_user_id


Compare: https://github.com/ckan/ckan/compare/988605604cc6...7eba75e670b4


More information about the ckan-changes mailing list