feat(qaops): 接入独立只读问答查询与治理覆盖复检
This commit is contained in:
@@ -101,7 +101,7 @@ func isAuthEndpoint(method, path string) bool {
|
||||
func classifyRole(method, path string) string {
|
||||
// The member roster exposes account identities and roles: admin-only for
|
||||
// every method, checked before the read shortcut below.
|
||||
if strings.HasPrefix(path, "/api/v1/users") {
|
||||
if strings.HasPrefix(path, "/api/v1/users") || strings.HasPrefix(path, "/api/v1/qa-ops/") {
|
||||
return roleAdmin
|
||||
}
|
||||
if method == http.MethodGet {
|
||||
|
||||
Reference in New Issue
Block a user