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

Adrià Mercader noreply at github.com
Mon Jun 3 10:40:58 UTC 2019


  Branch: refs/heads/4827-resource_view_show-auth
  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.




More information about the ckan-changes mailing list