MCPcopy
hub / github.com/django/django / _get_user_permissions

Method _get_user_permissions

django/contrib/auth/backends.py:103–104  ·  view source on GitHub ↗
(self, user_obj)

Source from the content-addressed store, hash-verified

101 return getattr(user, "is_active", True)
102
103 def _get_user_permissions(self, user_obj):
104 return user_obj.user_permissions.all()
105
106 def _get_group_permissions(self, user_obj):
107 return Permission.objects.filter(group__in=user_obj.groups.all())

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected