diff --git a/app/controllers/photos.rb b/app/controllers/photos.rb index 2274de1..a1ed74a 100644 --- a/app/controllers/photos.rb +++ b/app/controllers/photos.rb @@ -34,7 +34,7 @@ class Photos < Application end def delete - raise NotAllowed unless request.xhr? + raise NotAcceptable unless request.xhr? if current_user and current_user.administrator? render else