Copy-paste fix pattern
library CB-Security.RBAC
fn main() {
string userRole = "consumer"
if (CB-Security.RBAC.matches(userRole, "admin")) {
println("allowed")
} else {
println("blocked")
}
}
ClosedBit Docs
ClosedBit error docs
Security policy blocked the operation. Authentication, RBAC, rate limiting, token validation, or a sandbox policy denied the request.
Authentication, RBAC, rate limiting, token validation, or a sandbox policy denied the request.
Check the role, token, permission, and rate-limit rule before retrying.
library CB-Security.RBAC
fn main() {
string userRole = "consumer"
if (CB-Security.RBAC.matches(userRole, "admin")) {
println("allowed")
} else {
println("blocked")
}
}