aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 59d1370d..4fe9a7b5 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -223,10 +223,9 @@ use crate::db::{
};
pub struct Host {
- pub host: String
+ pub host: String,
}
-
impl<'a, 'r> FromRequest<'a, 'r> for Host {
type Error = &'static str;
@@ -506,7 +505,11 @@ impl<'a, 'r> FromRequest<'a, 'r> for ManagerHeaders {
};
if !headers.org_user.has_full_access() {
- match CollectionUser::find_by_collection_and_user(&col_id, &headers.org_user.user_uuid, &conn) {
+ match CollectionUser::find_by_collection_and_user(
+ &col_id,
+ &headers.org_user.user_uuid,
+ &conn,
+ ) {
Some(_) => (),
None => err_handler!("The current user isn't a manager for this collection"),
}