---
title: "Discussion on \"Turning a Permission Model Into a Guard\" | Hashnode"
description: "Discussion on \"Turning a Permission Model Into a Guard\". A permission model that lives only in the database does nothing. This is the runtime layer, a declarative decorator and a guard that turns \"who can do what\" into an enforced answer on every request, without scattering authorization logic through your handlers."
url: "https://hashnode.com/posts/turning-a-permission-model-into-a-guard/6a1eb292a9b38142247e62c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Turning a Permission Model Into a Guard](https://oladele.hashnode.dev/turning-a-permission-model-into-a-guard?utm_source=hashnode&utm_medium=feed)

A permission model that lives only in the database does nothing. This is the runtime layer, a declarative decorator and a guard that turns "who can do what" into an enforced answer on every request, without scattering authorization logic through your handlers.

Jun 2 · 12 min read · oladele.hashnode.dev  
Read the article

-   [#backend](https://hashnode.com/tag/backend)
-   [#nestjs](https://hashnode.com/tag/nestjs)
-   [#authorization](https://hashnode.com/tag/authorization)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web-security](https://hashnode.com/tag/web-security)
-   [#saas](https://hashnode.com/tag/saas)
-   [#multi-tenancy](https://hashnode.com/tag/multi-tenancy)

## Written by

[Oladele David Temidayo](https://hashnode.com/@oladele)

@oladele · Lagos, NG

  
[View profile](https://hashnode.com/@oladele)

Gamer | Software Developer |Founder | Love Football

I am Oladele David, a software, DevOps &amp; cybersecurity engineer. I build backends and cloud infrastructure and write about system design, open source, and learning in public.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
