fix permission name

This commit is contained in:
byte[] 2019-11-24 21:27:25 -05:00
parent 9ba679f3a5
commit e343cf9ee0
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
.block .block
= form_for @changeset, Routes.image_source_path(@conn, :update, @image), [method: "put", class: "hidden", id: "source-form", data: [remote: true]], fn f -> = 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 = if @changeset.action do
.alert.alert-danger .alert.alert-danger

View file

@ -2,7 +2,7 @@
.js-tagsauce#image_tags_and_source .js-tagsauce#image_tags_and_source
.js-imageform class=form_class .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 -> = form_for @changeset, Routes.image_tag_path(@conn, :update, @image), [id: "tags-form", method: "put", data: [remote: true]], fn f ->
= if @changeset.action do = if @changeset.action do