Skip to main content

No project description provided

Project description

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’)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-acl-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

ckanext_acl-0.1.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-acl-0.1.1.tar.gz.

File metadata

  • Download URL: ckanext-acl-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for ckanext-acl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dea8b8c2cf4e98b4beb1d82725642ccc97b509622a0a28a932f7d57431924b24
MD5 e5f1479a274eb9792b01ccdd2e936f19
BLAKE2b-256 701ea5722cc860c05259924a7338d098e4270cbb40209e00f7291fc2fc043704

See more details on using hashes here.

File details

Details for the file ckanext_acl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ckanext_acl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for ckanext_acl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30536fceb03bec3892eed73b2973a416e295a8d7a963793f9578e5b23ce1ec06
MD5 917f2a5d69561b1238baa1d5614be501
BLAKE2b-256 946ef8aeba9f3fb685bb465e5417df7a567ddfb8d55855e8a7321b2c3b74fe33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page