templates-module-rbac

Community

Efficiently manage RBAC in a complex, multi-route module.

Authorivegamsft
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Templates module RBAC pattern solves the problem of enforcing complex and mixed Role-Based Access Control (RBAC) rules across a backend module with multiple route prefixes.

Core Features & Use Cases

  • Multi-route RBAC: Facilitates role-gated and ownership-based security checks across multiple related endpoints.
  • Ownership Checks: Ensures that endpoints requiring user ownership can only be accessed by the owner of the associated data.
  • Status Computation: Centralizes status calculation logic to maintain consistent state management across the module.
  • Reference: For detailed guidance and implementation examples, refer to the associated apps/api/src/modules/templates/{router,service}.ts.

Quick Start

To utilize the RBAC pattern in the Templates module, import the dedicated router and service, pass an { id, role } actor object, and integrate the logic into your application flow.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: templates-module-rbac
Download link: https://github.com/ivegamsft/work-tracker/archive/main.zip#templates-module-rbac

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.