package testtoken

import (
	"github.com/pingcap/dbaas/central/config"
)

func isPermitToCRUDConfigService(tenantID uint64) bool {
	stage := config.Global().ServerConfig.Stage
	if stage == string(config.StageNightly) {
		return true
	}

	if stage == string(config.StageE2E) && tenantID == 1281069365634012136 {
		return true
	}

	if stage == config.StageStaging && tenantID == 1369847559691367274 {
		// feng.ou used to test tools on staging
		return true
	}

	return false
}
