From 7338b81254bc6f1a16c469ae7cc58ef63423cdc5 Mon Sep 17 00:00:00 2001 From: wanjunlei Date: Sat, 27 Jun 2020 11:13:26 +0800 Subject: [PATCH] Delete modification of permission and submit as a pr separately --- pkg/models/tenant/tenant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/models/tenant/tenant.go b/pkg/models/tenant/tenant.go index 6fc0e7579..68a92670a 100644 --- a/pkg/models/tenant/tenant.go +++ b/pkg/models/tenant/tenant.go @@ -702,9 +702,10 @@ func (t *tenantOperator) Auditing(user user.Info, queryParam *auditingv1alpha1.Q listEvts := authorizer.AttributesRecord{ User: user, Verb: "list", + APIGroup: "", + APIVersion: "v1", Resource: "namespaces", ResourceRequest: true, - ResourceScope: request.ClusterScope, } decision, _, err := t.authorizer.Authorize(listEvts) if err != nil {