---
title: "Discussion on \"Introduction to handling permissions\" | Hashnode"
description: "Discussion on \"Introduction to handling permissions\". Simplest Permission System\nAt first, many of us begin with a basic role system:\ntype User = {\n  id: string;\n  role: \"admin\" | \"editor\" | \"user\";\n};\n\nfunction canDeleteArticle(user: User) {\n  return user.role === \"admin\";\n}\n\nThis setup is fine for bas..."
url: "https://hashnode.com/posts/introduction-to-handling-permissions/67bb51d5a14cfaa7ec2e4cb1"
---

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

Discussion

# [Introduction to handling permissions](https://tigerabrodi.blog/introduction-to-handling-permissions?utm_source=hashnode&utm_medium=feed)

Simplest Permission System At first, many of us begin with a basic role system: type User = { id: string; role: "admin" | "editor" | "user"; }; function canDeleteArticle(user: User) { return user.role === "admin"; } This setup is fine for bas...

Feb 23, 2025 · 3 min read · tigerabrodi.blog  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#databases](https://hashnode.com/tag/databases)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

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

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
