[ckan-changes] [ckan/ckan] e5d8c0: [#1665] Refactor auth logic moving it to new_authz

GitHub noreply at github.com
Mon Jun 23 22:33:53 UTC 2014


  Branch: refs/heads/1665-group-auth-for-any-logged-in-user
  Home:   https://github.com/ckan/ckan
  Commit: e5d8c057f993c44760abf39265893f751ee6f9ed
      https://github.com/ckan/ckan/commit/e5d8c057f993c44760abf39265893f751ee6f9ed
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2014-06-23 (Mon, 23 Jun 2014)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/new_authz.py

  Log Message:
  -----------
  [#1665] Refactor auth logic moving it to new_authz


  Commit: 0d84491eed428843d152ef0fcf43f7d616dcc439
      https://github.com/ckan/ckan/commit/0d84491eed428843d152ef0fcf43f7d616dcc439
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2014-06-23 (Mon, 23 Jun 2014)

  Changed paths:
    M ckan/new_tests/helpers.py

  Log Message:
  -----------
  [#1665] Fix bug in helpers.change_config

The problem was that if the method being decorated raised an Exception, we
didn't reset the config to their original values. This patch guarantees that
we'll reset it.


  Commit: 7b38493c9b5b94c376fd83ddcd16a02fab712834
      https://github.com/ckan/ckan/commit/7b38493c9b5b94c376fd83ddcd16a02fab712834
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2014-06-23 (Mon, 23 Jun 2014)

  Changed paths:
    M ckan/new_authz.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/new_tests/test_new_authz.py
    M doc/maintaining/configuration.rst

  Log Message:
  -----------
  [#1665] Allow default permissions to be set to group and orgs separately

The `ckan.auth.default_group_or_org_permissions` was split between
`ckan.auth.default_group_only_permissions` and
`ckan.auth.default.org_only_permissions`, so you could allow any user to add
datasets to any group, but not to any organization.


Compare: https://github.com/ckan/ckan/compare/d603f9a0564c...7b38493c9b5b


More information about the ckan-changes mailing list