mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-26 19:31:32 +01:00
fix: user guard on knowledge relationship deletion
This commit is contained in:
@@ -385,9 +385,7 @@ pub async fn delete_knowledge_relationship(
|
||||
RequireUser(user): RequireUser,
|
||||
Path(id): Path<String>,
|
||||
) -> Result<impl IntoResponse, HtmlError> {
|
||||
// GOTTA ADD AUTH VALIDATION
|
||||
|
||||
KnowledgeRelationship::delete_relationship_by_id(&id, &state.db).await?;
|
||||
KnowledgeRelationship::delete_relationship_by_id(&id, &user.id, &state.db).await?;
|
||||
|
||||
let entities = User::get_knowledge_entities(&user.id, &state.db).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user