Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: skip checking for DiffMetadata (#10463)

p0ny12c6b646b549
diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.go
index 21bdfefa92..285d48acb9 100644
--- a/backend/api/v1/acl_config.go
+++ b/backend/api/v1/acl_config.go
@@ -194,6 +194,7 @@ var methodPermissionMap = map[string]iam.Permission{
v1pb.BranchService_DeleteBranch_FullMethodName: iam.PermissionBranchesDelete,
v1pb.BranchService_MergeBranch_FullMethodName: iam.PermissionBranchesUpdate,
v1pb.BranchService_RebaseBranch_FullMethodName: iam.PermissionBranchesUpdate,
+ v1pb.BranchService_DiffMetadata_FullMethodName: "", // no need to check.
v1pb.IdentityProviderService_GetIdentityProvider_FullMethodName: iam.PermissionIdentityProvidersGet,
v1pb.IdentityProviderService_CreateIdentityProvider_FullMethodName: iam.PermissionIdentityProvidersCreate,
diff --git a/backend/api/v1/acl_iam.go b/backend/api/v1/acl_iam.go
index 5a1ecfd9e8..5ea08fbe98 100644
--- a/backend/api/v1/acl_iam.go
+++ b/backend/api/v1/acl_iam.go
@@ -256,6 +256,9 @@ func isSkippedMethod(fullMethod string) bool {
v1pb.BranchService_MergeBranch_FullMethodName,
v1pb.BranchService_RebaseBranch_FullMethodName:
return true
+ // no need to check.
+ case v1pb.BranchService_DiffMetadata_FullMethodName:
+ return true
// handled in the method because we need to consider changelist.Creator.
case
v1pb.ChangelistService_UpdateChangelist_FullMethodName,