[ckan-dev] authorization problem
p.romain at cg33.fr
p.romain at cg33.fr
Mon Jun 10 09:08:47 UTC 2013
Hi,
I am using ckan 1.7.2.
I wanted to modify to behaviour of our ckan instance to allow visitors to
be able to read all packages.
but as a result I have blocked the access to all packages for visitors :(
!! and I have the following error on my logs :
Error - <class 'ckan.logic.NotAuthorized'>: NotAuthorized()
Could you please help me sort this problem ?
I followed the instruction listed here
https://ckan.readthedocs.org/en/ckan-1.7.2/authorization.html
and issued the following commands
paster rights make visitor reader system
paster rights make visitor reader package:all
paster rights remove visitor anon_editor package:all
paster rights remove visitor anon_editor system
in my development.ini file I have the followong settings :
ckan.default_roles.Package = {"visitor": ["reader"], "logged_in":
["reader"]}
ckan.default_roles.System = {"visitor": ["reader"], "logged_in":
["reader"]}
ckan.default_roles.Group = {"visitor": ["reader"], "logged_in":
["reader"]}
ckan.default_roles.AuthorizationGroup = {"visitor": ["reader"],
"logged_in": ["reader"]}
here is my role configuration
paster roles list :
reader read, read-site, read-user
editor edit, create-package, create-group, read-site,
create-user, read, file-upload
anon_editor read, create-user, read-site
Cordialement,
Pascal Romain
Chef de projet informatique documentaire
Service Projets Etudes Conseils
Direction des Systèmes d'Information
05 56 99 33 33 poste 6643
@datalocale
__________________________________________________________________
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Ce message ne constitue pas un document officiel. Seuls les documents revêtus de la signature du Président du Conseil Général ou d'un de ses délégataires sont de nature à engager le Département.
Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération et le Département de la Gironde décline toute responsabilité au titre de ce message s'il a été altéré, déformé, falsifié.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130610/37648dbb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 7254 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130610/37648dbb/attachment-0001.jpe>
More information about the ckan-dev
mailing list