diff --git a/lib/philomena_web/templates/image/_source.html.slime b/lib/philomena_web/templates/image/_source.html.slime index 8c9bd0e2..24c988a1 100644 --- a/lib/philomena_web/templates/image/_source.html.slime +++ b/lib/philomena_web/templates/image/_source.html.slime @@ -1,6 +1,6 @@ .block = form_for @changeset, Routes.image_source_path(@conn, :update, @image), [method: "put", class: "hidden", id: "source-form", data: [remote: true]], fn f -> - = if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do + = if can?(@conn, :edit_metadata, @image) and !@conn.assigns.current_ban do = if @changeset.action do .alert.alert-danger diff --git a/lib/philomena_web/templates/image/_tags.html.slime b/lib/philomena_web/templates/image/_tags.html.slime index cccacd66..8350504b 100644 --- a/lib/philomena_web/templates/image/_tags.html.slime +++ b/lib/philomena_web/templates/image/_tags.html.slime @@ -2,7 +2,7 @@ .js-tagsauce#image_tags_and_source .js-imageform class=form_class - = if can?(@conn, :update_metadata, @image) and !@conn.assigns.current_ban do + = if can?(@conn, :edit_metadata, @image) and !@conn.assigns.current_ban do = form_for @changeset, Routes.image_tag_path(@conn, :update, @image), [id: "tags-form", method: "put", data: [remote: true]], fn f -> = if @changeset.action do