[ckan-dev] Permissions: adding a page to read-site action

Toby Dacre toby.okfn at gmail.com
Thu Dec 13 02:40:03 UTC 2012


On 12 December 2012 14:12, Knud Hinnerk Möller <knud at datalysator.com> wrote:

> Hi,
>
> according to http://docs.ckan.org/en/ckan-1.8/authorization.html, the
> "read-site action (associated with the system object) allows or denies
> access to pages not associated with specific objects. These currently
> include: Dataset search, Group index, Tags index, Authorization Group
> index, All requests to the API (on top of any other authorization
> requirements)"
>
> How would I go about adding a page to this list? Specifically, I would
> like to include the /stats page. This is for a non-public CKAN (1.8), where
> any kind of access requires a login.
>
> The easy way would be to add a __before__ method to the stats controller
similar to the one in the HomeController ckan/controllers/home.py  - that
would be a quick solution.  we should probably sort some thing in lib/base
to do this site wide

Toby

> Cheers,
> Knud
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121213/c6d8d0c5/attachment-0001.html>


More information about the ckan-dev mailing list