feat: add generic queue and subscription retirement
This commit is contained in:
@@ -34,7 +34,7 @@ func consoleScopePath(r *http.Request) bool {
|
||||
return r.Method == "GET"
|
||||
}
|
||||
if strings.HasPrefix(p, prefix+"/") {
|
||||
return r.Method == "GET" || (resource != "queues" && r.Method == "POST")
|
||||
return r.Method == "GET" || (r.Method == "POST" && (resource != "queues" || strings.HasSuffix(p, ":retire")))
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user