Tim Kamanin demonstrates how to leverage Django’s perms context variable to conditionally render UI elements based on user permissions . This lesson shows how to check the wagtailadmin.access_admin permission within templates to display or hide an Admin panel link .
https://timonweb.com/django/checking-current-user-permissions-in-django-templates/
Post #159
18.3K