See has_module_perms()
(self, user_obj, app_label)
| 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 | """ |
nothing calls this directly
no test coverage detected