MCPcopy
hub / github.com/django/django / ahas_module_perms

Method ahas_module_perms

django/contrib/auth/backends.py:193–198  ·  view source on GitHub ↗

See has_module_perms()

(self, user_obj, app_label)

Source from the content-addressed store, hash-verified

191 )
192
193 async def ahas_module_perms(self, user_obj, app_label):
194 """See has_module_perms()"""
195 return user_obj.is_active and any(
196 perm[: perm.index(".")] == app_label
197 for perm in await self.aget_all_permissions(user_obj)
198 )
199
200 def with_perm(self, perm, is_active=True, include_superusers=True, obj=None):
201 """

Callers

nothing calls this directly

Calls 2

indexMethod · 0.45
aget_all_permissionsMethod · 0.45

Tested by

no test coverage detected