Ticket #1688 (closed enhancement: fixed)
API for changing the permissions on an object
Reported by: | dread | Owned by: | dread |
---|---|---|---|
Priority: | critical | Milestone: | ckan-sprint-2012-02-06 |
Component: | ckan | Keywords: | |
Cc: | philipp.laemmel@… | Repository: | ckan |
Theme: | none |
Description
We need an API for changing the authorization (permissions) on a model object.
This was neglected in #1253 because of various changes to authz were looming. But six months later it still hasn't been done.
Suggest this is just moving _add_user_object_role from ckan/lib/base.py to the logic layer, but no doubt it will be more complicated.
Estimate: 3 days
Change History
comment:1 Changed 2 years ago by dread
- Milestone changed from current-ckan-sprint-2012-01-23 to current-ckan-sprint-2012-02-06
comment:2 Changed 2 years ago by dread
- Status changed from new to closed
- Resolution set to fixed
Done: [feature-1688-authz-api 8d7b42c]
Work excludes changing roles on the System object, so you can't make people sysadmins. This could be a future ticket.
Docs added to apiv3.rst and examples here: http://wiki.ckan.org/Using_the_API
Took: 3.5 days
Note: See
TracTickets for help on using
tickets.
Have not really started this - rolling into new sprint.