Skip to main content

Access control list (ACL) provides an additional, more flexible permission mechanism for file systems. It is designed to assist with UNIX file permissions. ACL allows you to give permissions for any user or group to any disc resource.

Use of ACL

Think of a scenario in which a particular user is not a member of group created by you but still you want to give some read or write access, how can you do it without making user a member of group, here comes in picture Access Control Lists, ACL helps us to do this trick.

Quick start

Add “django_acl” to your INSTALLED_APPS setting

INSTALLED_APPS = [
        ...
        'django_acl',
    ]

Apply django-acl-permissions models

python manage.py makemigrations
python manage.py migrate

Add user_groups field in to your User Model

class Users(AbstractBaseUser, PermissionsMixin):
    user_groups = models.ManyToManyField(
        Group,
        verbose_name=_("user_groups"),
        blank=True,
        help_text=_(
            "The groups this user belongs to. A user will get all permissions "
            "granted to each of their groups."
        ),
        related_name="user_set",
        related_query_name="user",
    )

Add has_acl_perms function in to your User Model

def has_acl_perms(self, perm, obj = None):
    return acl_has_perms(self, perm, obj=obj)

Metadata

Release files for django-acl-permissions 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-acl-permissions 2.0.0
File Size Uploaded Provenance Actions
django-acl-permissions-2.0.0.tar.gz 8.4 kB Without provenance Details for django-acl-permissions-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-acl-permissions 2.0.0
File Interpreter ABI Platform Actions
django_acl_permissions-2.0.0-py3-none-any.whl Python 3 none any Details for django_acl_permissions-2.0.0-py3-none-any.whl

Total release size: 18.2 kB

Release files / django-acl-permissions-2.0.0.tar.gz

Download URL django-acl-permissions-2.0.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70989e453e0b174bc8626183f1b1d5cfb8ae74a67d47e07b22268ece922b78d0
BLAKE2b-256 checksum
How to use checksums
0cb4e50d57025a24b5d182ac92a3f0efa56316c45fe09015251c33808983a2b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / django_acl_permissions-2.0.0-py3-none-any.whl

Download URL django_acl_permissions-2.0.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf93bf72a8463c20e75a0be3c58e022b43ea86023fa80b795814d60c17dcc684
BLAKE2b-256 checksum
How to use checksums
f54cff4c071943ea12c7a90d737b1e847e2d7480421bc9ecf480b4d86fb6674e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Security for django-acl-permissions 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page