MCPcopy Index your code
hub / github.com/bytebase/bytebase / isSettingDisallowed

Method isSettingDisallowed

backend/api/v1/setting_service.go:855–864  ·  view source on GitHub ↗
(name storepb.SettingName)

Source from the content-addressed store, hash-verified

853}
854
855func (*SettingService) isSettingDisallowed(name storepb.SettingName) bool {
856 // Backend-only settings that should never be exposed via the API.
857 switch name {
858 case storepb.SettingName_SYSTEM:
859 // SYSTEM: Internal system settings (auth secret, workspace ID, enterprise license)
860 return true
861 default:
862 return false
863 }
864}
865
866func validateApprovalTemplate(template *v1pb.ApprovalTemplate) error {
867 if template.Flow == nil {

Callers 3

ListSettingsMethod · 0.95
GetSettingMethod · 0.95
UpdateSettingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected