wrong exception
parent
6fb8772474
commit
9fcc103e15
|
@ -34,7 +34,7 @@ class Photos < Application
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete
|
def delete
|
||||||
raise NotAllowed unless request.xhr?
|
raise NotAcceptable unless request.xhr?
|
||||||
if current_user and current_user.administrator?
|
if current_user and current_user.administrator?
|
||||||
render
|
render
|
||||||
else
|
else
|
||||||
|
|
Reference in New Issue