authorization

Community

Secure role-based access for Soleil Hostel.

Authortaucao-ruby
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manages and enforces role-based access control for the Soleil Hostel backend, ensuring only authorized users can access admin and moderator functionality and protected routes.

Core Features & Use Cases

  • Role definitions and permission checks via hasRole and isUser helpers.
  • Gate and middleware enforcement for admin and moderator routes.
  • Test coverage across unit and feature tests (GateTest, EnsureUserHasRoleTest, UserRoleHelpersTest) to validate access rules.
  • Factory setup for admin and moderator states to support reproducible tests.

Quick Start

Review the backend authorization flow by inspecting Gate, EnsureUserHasRole, and User model tests to extend or modify access rules.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: authorization
Download link: https://github.com/taucao-ruby/soleil-hostel/archive/main.zip#authorization

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 471,000+ vetted skills library on demand.