mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: do not allow creating empty role
Like user, we should not allow creating empty role. Related #10905
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "RoleAdd adds a new role.",
|
||||
"summary": "RoleAdd adds a new role. Role name cannot be empty.",
|
||||
"operationId": "RoleAdd",
|
||||
"parameters": [
|
||||
{
|
||||
@@ -263,7 +263,7 @@
|
||||
"tags": [
|
||||
"Auth"
|
||||
],
|
||||
"summary": "UserAdd adds a new user.",
|
||||
"summary": "UserAdd adds a new user. User name cannot be empty.",
|
||||
"operationId": "UserAdd",
|
||||
"parameters": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user