[ckan-discuss] Creating new roles

Ruben Martin ruben.martin at fundacionctic.org
Wed Feb 29 08:37:21 GMT 2012


Hi all again.

Docs 1.5.1 mentions the possibility of creating new roles in addition
to the defaults. But i dont see any paster command to do that, nor any
web administration page. So can i do that?

The objective would be to have the datasets in a site divided into
groups. Just users of a specific authorization group would have
permissions to add/edit datasets in the respective group.

But when we i try to do something similar to this:
paster --plugin=ckan roles allow newroleX create-package read read-site
paster --plugin=ckan rights make agroup:agroupX newroleX group:groupX

I get the error:
AssertionError: Role newroleX does not exist: anon_editor, admin, editor, reader

Thank you

-- 

Rubén Martín Calderero

CTIC-Centro Tecnológico
Parque Científico y Tecnológico de Gijón
c/ Ada Byron, 39 Edificio Centros Tecnológicos
33203 Gijón - Asturias - España
Tel.: +34 984 29 12 12
Fax: +34 984 39 06 12
E-mail: ruben.martin at fundacionctic.org
http://www.fundacionctic.org
Política de Privacidad: http://www.fundacionctic.org/privacidad



More information about the ckan-discuss mailing list