[ckan-dev] R: R: how I can disable edit right to visitor and logged_in

Sean Hammond sean.hammond at okfn.org
Fri Feb 1 14:50:14 UTC 2013


> Is possible that I've broken everythings ?

Don't worry, I'm sure it's fixable :)

> paster rights remove visitor anon_editor system 

This will mean that visitors (i.e. users who aren't logged in) cannot
read the site, whenever they try to visit a page they'll get redirected
to the login page. Did you intend that? If not, you can undo it with
this command:

paster rights make visitor anon_editor system

> [Thu Jan 31 14:36:23 2013] [error] 2013-01-31 14:36:23,143 ERROR [ckan.model.modification] 
> [Thu Jan 31 14:36:23 2013] [error] Traceback (most recent call last):
> [Thu Jan 31 14:36:23 2013] [error]   File "/home/opendata/pyenv/src/ckan/ckan/model/modification.py", line 76, in notify
> [Thu Jan 31 14:36:23 2013] [error]     observer.notify(entity, operation)
> [Thu Jan 31 14:36:23 2013] [error]   File "/home/opendata/pyenv/src/ckanext-datastorer/ckanext/datastorer/plugin.py", line 30, in notify
> [Thu Jan 31 14:36:23 2013] [error]     self._create_datastorer_task(entity)
> [Thu Jan 31 14:36:23 2013] [error]   File "/home/opendata/pyenv/src/ckanext-datastorer/ckanext/datastorer/plugin.py", line 63, in _create_datastorer_task
> [Thu Jan 31 14:36:23 2013] [error]     datastorer_task_status)
> [Thu Jan 31 14:36:23 2013] [error]   File "/home/opendata/pyenv/src/ckan/ckan/logic/action/update.py", line 456, in task_status_update
> [Thu Jan 31 14:36:23 2013] [error]     check_access('task_status_update', context, data_dict)
> [Thu Jan 31 14:36:23 2013] [error]   File "/home/opendata/pyenv/src/ckan/ckan/logic/__init__.py", line 157, in check_access
> [Thu Jan 31 14:36:23 2013] [error]     raise NotAuthorized(msg)
> [Thu Jan 31 14:36:23 2013] [error] NotAuthorized

I'm having difficulty reproducing this error, even after running your
four paster rights commands I'm not getting it. Are you only getting the
error when adding resource to existing datasets? Or do you also get it
when adding resources to new datasets (datasets added after you ran your
paster commands)? Can you send me the output of `paster rights`?




More information about the ckan-dev mailing list