diff --git a/src/api2/access/role.rs b/src/api2/access/role.rs index 2e114b75..745b64b9 100644 --- a/src/api2/access/role.rs +++ b/src/api2/access/role.rs @@ -16,7 +16,7 @@ use crate::config::acl::{Role, ROLE_NAMES, PRIVILEGES}; type: Object, description: "User name with description.", properties: { - role: { + roleid: { type: Role, }, privs: { @@ -49,7 +49,7 @@ fn list_roles() -> Result { priv_list.push(name.clone()); } } - list.push(json!({ "role": role, "privs": priv_list, "comment": comment })); + list.push(json!({ "roleid": role, "privs": priv_list, "comment": comment })); } Ok(list.into()) }