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