Skip to content
Web Dev Simplified
×0.8YouTube long-form

How to Build a Permission System that Scales to Enterprise

WDWeb Dev Simplified@WebDevSimplified · 1.8M subscribers
Views
38.3K
38,273
Outlier
×0.8
Median 47.5K
Length
55:45
Published
Nov 4, 2025
Tuesday
Comments
68
1.3K likes

Script

No transcript

Scout reads the transcripts of each creator's 12 latest long-form videos. This one isn't among them yet.

Description

Every app needs to handle authorization (aka permission), but doing so in an easy to extend and clean way is very hard. In this video I will show you how to build an incredibly robust permission system that hooks into your data access layer and UI by using CASL as the backbone of our permission system.

📚 Materials/References:

GitHub Code: https://github.com/WebDevSimplified/c...

Better Auth Crash Course Video:    • Master Senior Level Authentication In 4 Hours

Data Access Layer Video:    • How To Handle Data Access Like a Senior Dev

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com

My Courses: https://courses.webdevsimplified.com

Patreon:   / webdevsimplified

Twitter:   / devsimplified

Discord:   / discord

GitHub: https://github.com/WebDevSimplified

CodePen: https://codepen.io/WebDevSimplified

⏱️ Timestamps:

00:00 - Introduction

01:00 - Starting code

01:37 - Casl Setup

08:03 - Type Safety Setup

13:37 - Implementing basic permission checking

16:38 - Advanced permission checking

37:25 - Basic query permission checking

43:00 - Advanced query permission checking

#CASL #WDS #Authorization

More from Web Dev Simplified

Search Scout

Search creators, videos and pages, then press Enter to open one.