Skip to content

CKAN extension to manage permissions of individual CKAN users

License

Notifications You must be signed in to change notification settings

dmoreira97DLTT/ckanext-acl

 
 

Repository files navigation

ckanext-acl

Implentation of ACL for ckan.

When extension enabled, new tab Permissions added to admin interface. Here you can manage user permissions on per-user level.

In order to add new managed permission, one should implement ckanext.acl.interfaces.IACL and define update_permission_list method in plugin and change perm - first positional argument passed into this method. perms is ckanext.acl.access_permissions.AccessPermissions object so you can check available actions there.

Example of code that you can use in your plugin(will allow any user to create new organization)::

from ckanext.acl.interfaces import IACL

plugins.implements(IACL)

# IACL

def update_permission_list(self, perms):
perms.create_permission('organization_create')

About

CKAN extension to manage permissions of individual CKAN users

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.3%
  • Shell 6.2%
  • HTML 5.9%
  • JavaScript 4.6%
  • Mako 2.0%