If user is not list owner, hide buttons to move
It previously errored with a message that you are the wrong user.
This commit is contained in:
parent
028a4be860
commit
004dfe44ec
1 changed files with 2 additions and 2 deletions
|
@ -48,12 +48,12 @@ block content
|
|||
.field.inline
|
||||
.control.inline
|
||||
input.inline.button(type='submit', value='Add note')
|
||||
if index !== firstCanSee
|
||||
if index !== firstCanSee && req.user._id === req.params.user
|
||||
form.inline(method='POST', action=`/wishlist/${req.params.user}/move/up/${item.id}`)
|
||||
.field.inline
|
||||
.control.inline
|
||||
input.inline.button(type='submit' value='Move item up')
|
||||
if index !== lastCanSee
|
||||
if index !== lastCanSee && req.user._id === req.params.user
|
||||
form.inline(method='POST', action=`/wishlist/${req.params.user}/move/down/${item.id}`)
|
||||
.field.inline
|
||||
.control.inline
|
||||
|
|
Loading…
Reference in a new issue