-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authorization: create role management API
Creates an API to expose which roles could be managed by the current logged user. This commit also introduces a restriction to disallow the current user to delete itself. Co-Authored-by: Renaud Michotte <[email protected]>
- Loading branch information
Showing
10 changed files
with
128 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,6 +225,9 @@ | |
} | ||
] | ||
} | ||
}, | ||
"form": { | ||
"fieldMap": "roles" | ||
} | ||
}, | ||
"communication_channel": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2319,6 +2319,26 @@ | |
"blocked": true, | ||
"blocked_note": "Lost card" | ||
}, | ||
"ptrn12": { | ||
"$schema": "https://ils.rero.ch/schema/patrons/patron-v0.0.1.json", | ||
"pid": "ptrn12", | ||
"first_name": "Joella", | ||
"last_name": "Dosimonta", | ||
"street": "Grand place, 123", | ||
"postal_code": "1920", | ||
"city": "Martigny", | ||
"birth_date": "1980-06-07", | ||
"library": { | ||
"$ref": "https://ils.rero.ch/api/libraries/lib1" | ||
}, | ||
"email": "[email protected]", | ||
"phone": "+32324993585", | ||
"roles": [ | ||
"system_librarian", | ||
"librarian" | ||
], | ||
"barcode": "sys_ptrn12" | ||
}, | ||
"dummy_notif": { | ||
"$schema": "https://ils.rero.ch/schema/notifications/notification-v0.0.1.json", | ||
"pid": "notif1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters