Fix: show Delete button to admins
This commit is contained in:
parent
2297059e84
commit
75083eed6f
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// Button that reveals a dropdown/modal for moderation/reporting
|
||||
.button-group.small.align-center
|
||||
|
||||
- if screenshot_uploaded_by_current_user?(screenshot)
|
||||
- if (screenshot_uploaded_by_current_user?(screenshot) || (current_user && current_user.is_admin?))
|
||||
a.button.small.bordered.radius.alert[
|
||||
href=delete_screenshot_path(screenshot.id)
|
||||
onclick="return confirm('Really delete the screenshot?');"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue