X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fcontrollers%2Fpurchase_controller.rb;fp=app%2Fcontrollers%2Fpurchase_controller.rb;h=2ac4dae677dcd11bab2741914b671afc436bb447;hb=233a6b122bc4aed44a0babee0797d2dba6da5b06;hp=ebb08cd93dda1c00ac244534bb447c42805394d9;hpb=43745f29d581cad82adaa2071bfd97977ec502f6;p=cs356-p2-videostore.git diff --git a/app/controllers/purchase_controller.rb b/app/controllers/purchase_controller.rb index ebb08cd..2ac4dae 100644 --- a/app/controllers/purchase_controller.rb +++ b/app/controllers/purchase_controller.rb @@ -1,5 +1,8 @@ class PurchaseController < ApplicationController + # Make sure that a user logs in before doing any action here + before_filter :authorize + def index redirect_to :action => :begin end