moved attributes under docs
This commit is contained in:
parent
cc95edf4dc
commit
a02db13278
@ -48,8 +48,8 @@ struct CachedContract {
|
|||||||
contract: Option<SecretStoreAclStorage>,
|
contract: Option<SecretStoreAclStorage>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug)]
|
|
||||||
/// Dummy ACL storage implementation (check always passed).
|
/// Dummy ACL storage implementation (check always passed).
|
||||||
|
#[derive(Default, Debug)]
|
||||||
pub struct DummyAclStorage {
|
pub struct DummyAclStorage {
|
||||||
prohibited: RwLock<HashMap<Public, HashSet<ServerKeyId>>>,
|
prohibited: RwLock<HashMap<Public, HashSet<ServerKeyId>>>,
|
||||||
}
|
}
|
||||||
@ -121,8 +121,8 @@ impl CachedContract {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl DummyAclStorage {
|
impl DummyAclStorage {
|
||||||
|
/// Prohibit given requestor access to given documents
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
/// Prohibit given requestor access to given document
|
|
||||||
pub fn prohibit(&self, public: Public, document: ServerKeyId) {
|
pub fn prohibit(&self, public: Public, document: ServerKeyId) {
|
||||||
self.prohibited.write()
|
self.prohibited.write()
|
||||||
.entry(public)
|
.entry(public)
|
||||||
|
Loading…
Reference in New Issue
Block a user