Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: move diff metadata (#12892)
Danny Xubc8afd0644aa
diff --git a/backend/api/auth/config.go b/backend/api/auth/config.goindex 7f4521d2b8..eeda0bcb98 100644--- a/backend/api/auth/config.go+++ b/backend/api/auth/config.go@@ -17,6 +17,7 @@ var authenticationAllowlistMethods = map[string]bool{v1pb.AuthService_CreateUser_FullMethodName: true,v1pb.IdentityProviderService_ListIdentityProviders_FullMethodName: true,v1pb.SQLService_ParseMyBatisMapper_FullMethodName: true,+ v1pb.BranchService_DiffMetadata_FullMethodName: true,}// IsAuthenticationAllowed returns whether the method is exempted from authentication.diff --git a/backend/api/v1/acl_config.go b/backend/api/v1/acl_config.goindex 7a8af94f7b..12ebb517f8 100644--- a/backend/api/v1/acl_config.go+++ b/backend/api/v1/acl_config.go@@ -160,7 +160,6 @@ 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.goindex d9d08d8f7b..8830d4d05b 100644--- a/backend/api/v1/acl_iam.go+++ b/backend/api/v1/acl_iam.go@@ -112,9 +112,6 @@ 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.casev1pb.ChangelistService_UpdateChangelist_FullMethodName,