diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 8fcbdef..97d9c99 100644
a
|
b
|
class User(models.Model):
|
329 | 329 | If object is passed, it checks if the user has all required perms |
330 | 330 | for this object. |
331 | 331 | """ |
| 332 | |
| 333 | # Active superusers have all permissions. |
| 334 | if self.is_active and self.is_superuser: |
| 335 | return True |
| 336 | |
332 | 337 | for perm in perm_list: |
333 | | if not self.has_perm(perm, obj): |
| 338 | if not _user_has_perm(self, perm, obj): |
334 | 339 | return False |
335 | 340 | return True |
336 | 341 | |