Profile update tests
This commit is contained in:
@@ -158,7 +158,10 @@ pub async fn update_post(
|
||||
))
|
||||
.into_response())
|
||||
}
|
||||
_ => Ok(HtmlTemplate(ErrorTemplate::Forbidden).into_response()),
|
||||
_ => Ok(HtmlTemplate(MessageTemplate::error(
|
||||
"You are not authorized. Only the author can edit his post.".into(),
|
||||
))
|
||||
.into_response()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user