Spaces:
Runtime error
Runtime error
chrisaka commited on
Commit ·
8dcdb21
1
Parent(s): 0b02fda
Update permissions for 'juriste' role to include write access for clients and audiences
Browse files- README.md +1 -1
- app/core/permissions.py +3 -3
README.md
CHANGED
|
@@ -304,7 +304,7 @@ Content-Type: application/json
|
|
| 304 |
| `associe_gerant` | R/W/D | R/W/D | R/W/D | R/W/D | R/W/D | R/W/D |
|
| 305 |
| `office_manager` | R/W/D | R/W/D | R | R | R/W | R |
|
| 306 |
| `avocat` | R/W | R/W | R/W | R/W | R | R/W |
|
| 307 |
-
| `juriste` |
|
| 308 |
|
| 309 |
_R = Lecture, W = Écriture/Création, D = Suppression_
|
| 310 |
|
|
|
|
| 304 |
| `associe_gerant` | R/W/D | R/W/D | R/W/D | R/W/D | R/W/D | R/W/D |
|
| 305 |
| `office_manager` | R/W/D | R/W/D | R | R | R/W | R |
|
| 306 |
| `avocat` | R/W | R/W | R/W | R/W | R | R/W |
|
| 307 |
+
| `juriste` | R/W | R/W | R/W | R/W | R | R/W |
|
| 308 |
|
| 309 |
_R = Lecture, W = Écriture/Création, D = Suppression_
|
| 310 |
|
app/core/permissions.py
CHANGED
|
@@ -57,10 +57,10 @@ PERMISSIONS: dict[RoleCabinet, Set[str]] = {
|
|
| 57 |
"utilisateur:read",
|
| 58 |
},
|
| 59 |
RoleCabinet.JURISTE: {
|
| 60 |
-
"client:read",
|
| 61 |
"dossier:read", "dossier:write",
|
| 62 |
-
"audience:read",
|
| 63 |
-
"flash_cr:read",
|
| 64 |
"paiement:read",
|
| 65 |
"fichier:read", "fichier:write",
|
| 66 |
"utilisateur:read",
|
|
|
|
| 57 |
"utilisateur:read",
|
| 58 |
},
|
| 59 |
RoleCabinet.JURISTE: {
|
| 60 |
+
"client:read", "client:write",
|
| 61 |
"dossier:read", "dossier:write",
|
| 62 |
+
"audience:read", "audience:write",
|
| 63 |
+
"flash_cr:read", "flash_cr:write",
|
| 64 |
"paiement:read",
|
| 65 |
"fichier:read", "fichier:write",
|
| 66 |
"utilisateur:read",
|