mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-29 14:01:50 -05:00
Allow user folder permissions to be updated
Updated the endpoint for `.set_permissions` to update a user's folder permissions as well as permissions for a service. User folder permissions are optional for now, since Admin is not currently passing this data through.
This commit is contained in:
@@ -40,3 +40,16 @@ post_send_user_sms_code_schema = {
|
||||
'required': [],
|
||||
'additionalProperties': False
|
||||
}
|
||||
|
||||
|
||||
post_set_permissions_schema = {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "POST schema for setting user permissions",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"permissions": {"type": "array", "items": {"type": "object"}},
|
||||
"folder_permissions": {"type": "array", "items": {"type": "string"}}
|
||||
},
|
||||
"required": ["permissions"],
|
||||
"additionalProperties": False
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user