mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 08:46:38 +00:00
better naming of exposed user permissions
This commit is contained in:
@@ -191,7 +191,7 @@ components:
|
||||
UserPermissions:
|
||||
type: object
|
||||
properties:
|
||||
permissions:
|
||||
modules:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: object
|
||||
@@ -208,7 +208,7 @@ components:
|
||||
- read
|
||||
- write
|
||||
example: {"networks": { "read": true, "write": false}, "peers": { "read": false, "write": false} }
|
||||
auto_allow_new:
|
||||
default:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: boolean
|
||||
@@ -218,8 +218,7 @@ components:
|
||||
- read
|
||||
- write
|
||||
required:
|
||||
- permissions
|
||||
- auto_allow_new
|
||||
- default
|
||||
UserRequest:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
@@ -1703,8 +1703,8 @@ type UserCreateRequest struct {
|
||||
|
||||
// UserPermissions defines model for UserPermissions.
|
||||
type UserPermissions struct {
|
||||
AutoAllowNew map[string]bool `json:"auto_allow_new"`
|
||||
Permissions map[string]map[string]bool `json:"permissions"`
|
||||
Default map[string]bool `json:"default"`
|
||||
Modules *map[string]map[string]bool `json:"modules,omitempty"`
|
||||
}
|
||||
|
||||
// UserRequest defines model for UserRequest.
|
||||
|
||||
Reference in New Issue
Block a user