aboutsummaryrefslogtreecommitdiffstats
path: root/src/access/bans.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/access/bans.rs')
-rw-r--r--src/access/bans.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/access/bans.rs b/src/access/bans.rs
index a314f49..999f610 100644
--- a/src/access/bans.rs
+++ b/src/access/bans.rs
@@ -5,7 +5,8 @@
//! (`access::rules`, judged as the ban stood when they were made), and the tokens it
//! issued (`access::token`). Deleting the entry lifts the ban.
-use crate::document::{ReadDoc, meta, store};
+use crate::document::meta;
+use crate::document::view::{self, Read};
/// Where `node`'s ban is.
pub(crate) fn path(node: &str) -> Vec<String> {
@@ -13,6 +14,6 @@ pub(crate) fn path(node: &str) -> Vec<String> {
}
/// Whether `doc` bans `node`.
-pub(crate) fn banned(doc: &impl ReadDoc, node: &str) -> bool {
- store::read_plain(doc, &path(node)).ok().flatten().is_some()
+pub(crate) fn banned(doc: &impl Read, node: &str) -> bool {
+ view::read_plain(doc, &path(node)).ok().flatten().is_some()
}