Only set search cap for manage for now

This commit is contained in:
Nadja Reitzenstein 2022-04-28 20:35:06 +02:00
parent 869f3d5e5f
commit ed10b15a10

View File

@ -29,6 +29,7 @@ impl APISession {
let u = Users::new(session.clone()); let u = Users::new(session.clone());
if session.has_perm(Permission::new("bffh.users.manage")) { if session.has_perm(Permission::new("bffh.users.manage")) {
b.set_manage(capnp_rpc::new_client(u.clone())); b.set_manage(capnp_rpc::new_client(u.clone()));
b.set_search(capnp_rpc::new_client(u.clone()));
} }
b.set_info(capnp_rpc::new_client(u)); b.set_info(capnp_rpc::new_client(u));
} }