[ckan-dev] R: R: R: how I can disable edit right to visitor and logged_in
Salvatore Altiero
salvatore.altiero at linksmt.it
Fri Feb 1 15:49:57 UTC 2013
Many Thans Seam,
we've resolved the first error fixing the /pyenv/src/ckan/ckan/logic/__init__.py adding unicode() function in:
return ' - '.join([unicode(err_msg) for err_msg in err_msgs if err_msg])
because the error message had a Unicode character that was not displayet.
So, the original error message was: L'utente bari.ckan non \xc3\xa8 autorizzato ad aggiornare la tabella task_status
Than, we have anable bari.ckan: /pyenv/bin/paster --plugin=ckan rights make bari.ckan admin system
And now is ok.
But, I don't know why this user wasn't admin. I've change only the rights of visitor and logged_in.
And the bari.ckan isn't used in my platform.
Have you any idea ?
-----Messaggio originale-----
Da: ckan-dev-bounces at lists.okfn.org [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Sean Hammond
Inviato: venerdì 1 febbraio 2013 15:50
A: ckan-dev at lists.okfn.org
Oggetto: Re: [ckan-dev] R: R: how I can disable edit right to visitor and logged_in
> 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`?
_______________________________________________
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
--
This email was Virus checked by Astaro Security Gateway. http://www.astaro.com
More information about the ckan-dev
mailing list