Make spacename/instanceurl required and enable card interface

This commit is contained in:
Nadja Reitzenstein 2023-01-31 16:16:00 +01:00
parent 946a08c19c
commit cf3853263a
2 changed files with 3 additions and 4 deletions

View File

@ -73,6 +73,7 @@ impl User {
}
if session.has_perm(Permission::new("bffh.users.admin")) {
builder.set_admin(capnp_rpc::new_client(client.clone()));
builder.set_card_d_e_s_fire_e_v2(capnp_rpc::new_client(client));
}
}
}

View File

@ -97,11 +97,9 @@ pub struct Config {
#[serde(default, skip)]
pub logging: LogConfig,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub spacename: Option<String>,
pub spacename: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub instanceurl: Option<String>,
pub instanceurl: String,
}
impl Config {