diff --git a/backend/src/services/ron/calendar.rs b/backend/src/services/ron/calendar.rs index 1f673c9..922128b 100644 --- a/backend/src/services/ron/calendar.rs +++ b/backend/src/services/ron/calendar.rs @@ -14,8 +14,6 @@ use crate::{ translation::Sentence, }; -use super::rights::*; - #[debug_handler] pub async fn get_scheduled_recipes( State(connection): State, @@ -53,7 +51,6 @@ pub async fn add_scheduled_recipe( Extension(context): Extension, ExtractRon(ron): ExtractRon, ) -> Result { - check_user_rights_recipe(&connection, &context.user, ron.recipe_id).await?; if let Some(user) = context.user { connection .add_scheduled_recipe( @@ -79,7 +76,6 @@ pub async fn rm_scheduled_recipe( Extension(context): Extension, ExtractRon(ron): ExtractRon, ) -> Result { - check_user_rights_recipe(&connection, &context.user, ron.recipe_id).await?; if let Some(user) = context.user { connection .rm_scheduled_recipe(