fixed recipe api permissions when using shared recipes

This commit is contained in:
vabene1111
2020-07-14 00:22:39 +02:00
parent c45472689e
commit e0dac67b84
4 changed files with 28 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ def recipe_view(request, pk, share=None):
return render(request, 'recipe_view.html',
{'recipe': recipe, 'comments': comments, 'comment_form': comment_form,
'bookmark_form': bookmark_form})
'bookmark_form': bookmark_form, 'share': share})
@group_required('user')