Render delete button partial for users
This commit is contained in:
parent
d78362e45f
commit
499c59b761
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
' Uploaded by you
|
||||
- unless screenshot.approved
|
||||
' (needs to be approved)
|
||||
= render(partial: 'admin_buttons', locals: {screenshot: screenshot})
|
||||
// Is the user an admin?
|
||||
// or does the screenshot belong to the user (determined by session cookie)
|
||||
- if current_user && current_user.is_admin?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue