Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update app/controller/redactor_rails/pictures_controller.rb

  • Loading branch information...
commit 164a1dde4f26f9286796f3b2524d468ec7fa236e 1 parent b726f00
Mike Comstock authored October 11, 2012
2  app/controller/redactor_rails/pictures_controller.rb
... ...
@@ -1,10 +1,12 @@
1 1
 class RedactorRails::PicturesController < ApplicationController
2 2
   def index
  3
+    authorize! :access, :redactor_rails
3 4
     @pictures = RedactorRails.picture_model.find_all({})
4 5
     render :json => @pictures.to_json
5 6
 
6 7
   end
7 8
   def create
  9
+    authorize! :access, :redactor_rails
8 10
     @picture = RedactorRails::Picture.new
9 11
 
10 12
     file = params[:file]

0 notes on commit 164a1dd

Please sign in to comment.
Something went wrong with that request. Please try again.