'Returns True if the user has the specified permission. This method
queries all available auth backends, but returns 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, permissions for this specific object are checked.'

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

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