Add required authorization to all pages
[cs356-p2-videostore.git] / app / controllers / purchase_controller.rb
index ebb08cd..2ac4dae 100644 (file)
@@ -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