[ckan-changes] [ckan/ckan] 6d03ad: [#4827] More robust auth functions for resource_vi...

Ian Ward noreply at github.com
Thu Jun 27 15:31:17 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 6d03ad6454dd7ff3cc416f42dd969a9ed1c9a815
      https://github.com/ckan/ckan/commit/6d03ad6454dd7ff3cc416f42dd969a9ed1c9a815
  Author: amercader <amercadero at gmail.com>
  Date:   2019-06-03 (Mon, 03 Jun 2019)

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

  Log Message:
  -----------
  [#4827] More robust auth functions for resource_view_show

Fixes #4827.

Right now they rely on resource objects being present in the context.
You should be able to call the auth function with the same parameters
 as the action (ie just the resource view id). This is not an issue
 in core but it can be problematic when extending auth from extensions.


  Commit: 592e469088e5dc1c99d92af98176bf9913087b28
      https://github.com/ckan/ckan/commit/592e469088e5dc1c99d92af98176bf9913087b28
  Author: amercader <amercadero at gmail.com>
  Date:   2019-06-03 (Mon, 03 Jun 2019)

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

  Log Message:
  -----------
  [#4827] No need to update resource_view_list


  Commit: ff128cd752bf5c45e669bc69136fb98ced3fa621
      https://github.com/ckan/ckan/commit/ff128cd752bf5c45e669bc69136fb98ced3fa621
  Author: amercader <amercadero at gmail.com>
  Date:   2019-06-03 (Mon, 03 Jun 2019)

  Changed paths:
    M ckanext/datastore/tests/test_chained_auth_functions.py

  Log Message:
  -----------
  [#4827] pep8


  Commit: bdfd7690210712059cf6f0d60262fd62d873a136
      https://github.com/ckan/ckan/commit/bdfd7690210712059cf6f0d60262fd62d873a136
  Author: amercader <amercadero at gmail.com>
  Date:   2019-06-27 (Thu, 27 Jun 2019)

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

  Log Message:
  -----------
  [#4827] Don't rely at all on resource object in context


  Commit: f5d7640dcf1f7f75c288dcb3addce00f3f14e98b
      https://github.com/ckan/ckan/commit/f5d7640dcf1f7f75c288dcb3addce00f3f14e98b
  Author: Ian Ward <ian at excess.org>
  Date:   2019-06-27 (Thu, 27 Jun 2019)

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

  Log Message:
  -----------
  Merge pull request #4828 from ckan/4827-resource_view_show-auth

[#4827] More robust auth functions for resource_view_show


Compare: https://github.com/ckan/ckan/compare/5c368ebe4234...f5d7640dcf1f



More information about the ckan-changes mailing list