def has_permission(self):
        perms = self.get_permission_required()
        return self.request.user.has_perms(perms)
Override this method to customize the way permissions are checked.
dataset/ETHPy150Open django/django/django/contrib/auth/mixins.py/PermissionRequiredMixin.has_permission