'Return True if the user has the specified permission. Query all
available auth backends, but return immediately if any backend returns
True. Thus, a user who has permission from a single auth backend is
assumed to have permission in general. If an object is provided, check
permissions for that object.'

def has_perm(self, perm, obj=None):

    if (self.is_active and self.is_superuser):
        return True
    return _user_has_perm(self, perm, obj)
