app/controllers/ckeditor/pictures_controller.rb in glebtv-ckeditor-4.7.3 vs app/controllers/ckeditor/pictures_controller.rb in glebtv-ckeditor-4.7.3.1

- old
+ new

@@ -14,9 +14,11 @@ @picture = Ckeditor.picture_model.new respond_with_asset(@picture) end def destroy + return false unless Ckeditor.can_delete + @picture.destroy respond_to do |format| format.html { redirect_to pictures_path } format.json { render json: @picture, status: 204 }