Skip to content

Commit 129efa6

Browse files
authored
Update README.md
1 parent c362754 commit 129efa6

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

packages/authorization/README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
This plugin enables to define roles based on basic permissions per collection. The roles are assigned to users to control access.
44

55
https://github.com/user-attachments/assets/b10edbb4-6d38-466b-b855-f15d0f4ca350
6-
### Install
7-
8-
- Install the [plugin](https://www.npmjs.com/package/@shefing/authorization) using your node package manager, e.g:
9-
10-
`pnpm add @shefing/authorization`
116

127
### Usage
138
With this plugin, you're in full control of user roles and permissions in **Payload CMS**. While there is a built-in **Administrator** role, you can go beyond that and **create custom roles** tailored to your needs.
@@ -22,13 +17,13 @@ Each role you create consists of:
2217
- **Publish access** includes both **write and read access**.
2318

2419
With this powerful system, you have complete flexibility in managing access control—ensuring the right people have the right level of control.
25-
Example:
26-
27-
![img.png](./images/img.png)
2820

2921
Administrators can set as many permissions he/she wants within a role and as many as roles within a user
22+
### Install
3023

31-
![img_1.png](./images/img_1.png)
24+
- Install the [plugin](https://www.npmjs.com/package/@shefing/authorization) using your node package manager, e.g:
25+
26+
`pnpm add @shefing/authorization`
3227

3328
### Setup
3429

@@ -51,9 +46,6 @@ Install the roles collection (you don't have to use this collection, you can wri
5146
```
5247
### Fields Configuration
5348
54-
55-
56-
5749
The `users` collection must be update to include the following fields:
5850
5951
```javascript

0 commit comments

Comments
 (0)