Add required authorization to all pages
[cs356-p2-videostore.git] / app / controllers / video_controller.rb
index 31575d8..ee34e5c 100644 (file)
@@ -1,4 +1,8 @@
 class VideoController < ApplicationController
+
+  # Make sure that a user logs in before doing any action here
+  before_filter :authorize, :except => :login
+
   def index
     list
     render :action => 'list'