From a9a461edcc5c6d673854baad1dddc34796710c70 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 28 May 2024 16:21:46 +0200 Subject: [PATCH] refactor: [#448] delete placeholder API layer authorization class --- src/web/api/server/v1/authorization.rs | 31 -------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/web/api/server/v1/authorization.rs diff --git a/src/web/api/server/v1/authorization.rs b/src/web/api/server/v1/authorization.rs deleted file mode 100644 index 73259417..00000000 --- a/src/web/api/server/v1/authorization.rs +++ /dev/null @@ -1,31 +0,0 @@ -// API authorization - -/* use std::sync::Arc; - -use crate::errors::ServiceError; -use crate::models::user::UserId; -use crate::services::authorization::Service; - -pub struct Authorization { - authorization_service: Arc, -} - -impl Authorization { - #[must_use] - pub fn new(authorization_service: Arc) -> Self { - Self { authorization_service } - } - - // pub async authorize_guest_user - // pub async authorize_registered_user - pub async fn authorize_admin_user(user_id: &UserId) -> Result { - match Authorization::new(Arc::) - .user_authorization_repository - .get_user_authorization_from_id() - { - Ok(user_authorization) => {} - Err(_) => {} - } - } -} - */