mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
fix permission name
This commit is contained in:
parent
9ba679f3a5
commit
e343cf9ee0
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue