Welcome to django-permissionsx’s documentation!

Introduction

django-permissionsx is an alternative to Django permissions system. The main difference is that this package does not store anything in the database. Instead, it evaluates permissions dynamically based on the context data (request attributes, template context etc.)

Example:

def user_has_something(context):
    return context('request.user.has_something_method')

def is_owner_and_has_something(context):
    return is_owner(context) and user_has_something(context)