extensions-website/access/acl.py

3 lines
82 B
Python

def action_allowed_for(user, perm, obj=None):
return user.has_perm(perm, obj)