resource_control: consider default as a normal group (#741)

Signed-off-by: nolouch <nolouch@gmail.com>
This commit is contained in:
ShuNing 2023-03-16 15:56:37 +08:00 committed by GitHub
parent 9d950905d7
commit ad4d1554b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -91,9 +91,8 @@ func buildResourceControlInterceptor(
return nil return nil
} }
resourceGroupName := req.GetResourceGroupName() resourceGroupName := req.GetResourceGroupName()
// When the group name is empty or "default", we don't need to // When the group name is empty we don't need to perform the resource control.
// perform the resource control. if len(resourceGroupName) == 0 {
if len(resourceGroupName) == 0 || resourceGroupName == "default" {
return nil return nil
} }
// No resource group interceptor is set. // No resource group interceptor is set.