Change field permission on CreateRole to permissions

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/1/head
trivernis 4 years ago
parent bd464f4954
commit 76921e8854
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -67,7 +67,7 @@ pub struct GetPermissionsRequest {
pub struct CreateRoleRequest {
pub name: String,
pub description: Option<String>,
pub permission: Vec<i32>,
pub permissions: Vec<i32>,
}
#[derive(Deserialize)]

@ -152,7 +152,7 @@ impl UserRpcServer {
let role = self.database.roles.create_role(
message.name,
message.description,
message.permission,
message.permissions,
)?;
Ok(Message::new_with_serialize(CREATE_ROLE, role))

Loading…
Cancel
Save