Colaberry·Library
🧩

requireRole Colaberry vetted

capabilities · v1.0 · owner: ali@colaberry.com
middlewarerbacauthorizationcolaberry ○ not yet enriched
🚀 Use this in Claude Code
Reference the "requireRole" capability from our Colaberry library. Call colaberry_get_asset(category="capabilities", asset_id="requireRole") and apply it to: <YOUR TASK HERE>.
No ratings yet
💬 0 comments

🧾 Provenance

Authored by
Ali Muwwakkil Colaberry Inc
ali@colaberry.com
Approved by
Not yet approved by any company.
Owned by tenant: colaberry

📝 What it does

RBAC middleware for role-based authorization. Validates req.admin?.role is one of allowedRoles. Must be used AFTER requireAdmin. Returns 403 if role missing or not in allowed set.

💬 Discussion (0)

No comments yet. Be the first to share what you learned.

🎯 Used in 0 use cases

Not yet referenced by any use case. Browse use cases →

⭐ Rate this

✓ Colaberry vetting

Colaberry vetted

by ali@colaberry.com · 2026-06-09T12:26:37Z