Permalink
Browse files

Update app/controller/redactor_rails/pictures_controller.rb

  • Loading branch information...
mikecomstock committed Oct 11, 2012
1 parent b726f00 commit 164a1dde4f26f9286796f3b2524d468ec7fa236e
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controller/redactor_rails/pictures_controller.rb
@@ -1,10 +1,12 @@
class RedactorRails::PicturesController < ApplicationController
def index
+ authorize! :access, :redactor_rails
@pictures = RedactorRails.picture_model.find_all({})
render :json => @pictures.to_json
end
def create
+ authorize! :access, :redactor_rails
@picture = RedactorRails::Picture.new
file = params[:file]

0 comments on commit 164a1dd

Please sign in to comment.