I would like to be able to check in my code whether a user has access to the Wagtail admin interface. I was imagining a field on the Django model like user.is_wagtail_user
.
Is there an existing way to do this? Or is there something simple I can add?