Documentation
This commit is contained in:
parent
63266dec56
commit
bb9a6ba9ec
5 changed files with 47 additions and 18 deletions
|
|
@ -42,7 +42,7 @@ pub async fn edit(
|
|||
) -> Result<Response> {
|
||||
if let Some(ref user) = context.user {
|
||||
if let Some(recipe) = connection.get_recipe(recipe_id, false).await? {
|
||||
if model::can_user_edit_recipe(&user, &recipe) {
|
||||
if model::can_user_edit_recipe(user, &recipe) {
|
||||
let recipes = Recipes {
|
||||
published: connection
|
||||
.get_all_published_recipe_titles(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue