Typo that prevented deleting images
This commit is contained in:
parent
b36a49a6cd
commit
ce9e1d8877
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class PackagesController < ApplicationController
|
|||
|
||||
# Check if the user is allowed to change this screenshot
|
||||
# - Is this the user's own screenshot? (anonymous)
|
||||
if (@screenshot.user == current_user) || (can? :detroy, @screenshot)
|
||||
if (@screenshot.user == current_user) || (can? :destroy, @screenshot)
|
||||
logger.debug "User #{current_user} deletes screenshot #{@screenshot}"
|
||||
@screenshot.destroy
|
||||
flash['notice'] = "Screenshot deleted."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue