You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: All authorization is handled automatically by the middleware. Accessing the role in handlers is only for business logic purposes (e.g., personalizing UI, filtering data).
270
272
273
+
271
274
## Permission Naming Conventions
272
275
273
276
### Recommended Format
@@ -277,9 +280,10 @@ Use the format: `resource:action`
277
280
-**Resource**: The entity being accessed (e.g., `users`, `posts`, `orders`)
278
281
-**Action**: The operation being performed (e.g., `read`, `write`, `delete`, `update`)
279
282
280
-
### Examples
281
283
282
-
```
284
+
### Examples:
285
+
286
+
```editorconfig
283
287
"users:read" // Read users
284
288
"users:write" // Create/update users
285
289
"users:delete" // Delete users
@@ -289,6 +293,8 @@ Use the format: `resource:action`
0 commit comments