Registry store implementation - part 1
This commit is contained in:
@@ -56,10 +56,7 @@ use groupware::{
|
||||
};
|
||||
use http_proto::HttpResponse;
|
||||
use hyper::StatusCode;
|
||||
use registry::schema::{
|
||||
enums::Permission,
|
||||
prelude::{Object, Property},
|
||||
};
|
||||
use registry::schema::{enums::Permission, prelude::Object};
|
||||
use std::sync::Arc;
|
||||
use store::{
|
||||
ValueKey,
|
||||
@@ -264,7 +261,7 @@ impl PropFindRequestHandler for Server {
|
||||
self.registry()
|
||||
.query::<RoaringBitmap>(
|
||||
RegistryQuery::new(Object::Account)
|
||||
.equal_opt(Property::MemberTenantId, access_token.tenant_id()),
|
||||
.with_tenant(access_token.tenant_id()),
|
||||
)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
|
||||
@@ -13,7 +13,7 @@ use dav_proto::schema::{
|
||||
};
|
||||
use http_proto::HttpResponse;
|
||||
use hyper::StatusCode;
|
||||
use registry::schema::prelude::{Object, Property};
|
||||
use registry::schema::prelude::Object;
|
||||
use store::{registry::RegistryQuery, roaring::RoaringBitmap};
|
||||
use trc::AddContext;
|
||||
use types::collection::Collection;
|
||||
@@ -50,7 +50,7 @@ impl PrincipalPropSearch for Server {
|
||||
.registry()
|
||||
.query::<RoaringBitmap>(
|
||||
RegistryQuery::new(Object::Account)
|
||||
.equal_opt(Property::MemberTenantId, access_token.tenant_id())
|
||||
.with_tenant(access_token.tenant_id())
|
||||
.text(search_for),
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user