[ckan-dev] CKAN 2 permissions / publisher mode question

Joshua Tauberer tauberer+consulting at govtrack.us
Fri Feb 1 20:55:38 UTC 2013


Hi,

I'm trying out the latest CKAN 2 (from the release-v2.0 branch).

Over here at hub.healthdata.gov, we need the " Publisher Mode" described 
in the docs. I was able to make it work in CKAN 1.7 without any trouble.

On my CKAN 2 test site I have two users. user_a created a dataset named 
test. user_b is able to edit it, which I don't want.

$ paster --plugin=ckan rights list

...gives...

4 results
User visitor -> is reader on -> System system
User logged_in -> is reader on -> Package test
User user_a -> is admin on -> Package test
User visitor -> is reader on -> Package test

I don't understand how these interact with the defaults, but from my ini 
file the defaults are:

ckan.default_roles.Package = {"visitor": ["reader"], "logged_in": 
["reader"]}
ckan.default_roles.Group = {"visitor": ["reader"], "logged_in": ["reader"]}
ckan.default_roles.System = {"visitor": ["reader"], "logged_in": ["reader"]}
ckan.default_roles.AuthorizationGroup = {"visitor": ["reader"], 
"logged_in": ["reader"]}

So as far as I can tell, user_b should not be able to edit user_a's 
datasets.

Any ideas?

-- 
- Joshua Tauberer
- http://razor.occams.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130201/514cc311/attachment.html>


More information about the ckan-dev mailing list