Small Cleanups + Merchandise Search
[cs356-p2-videostore.git] / app / controllers / rentable_policy_controller.rb
index f99fbed..4151e6a 100644 (file)
@@ -1,4 +1,12 @@
 class RentablePolicyController < ApplicationController
+  layout "admin"
+
+  # Make sure that a user logs in before doing any action here
+  before_filter :authorize, :only => [:index, :list, :show]
+
+  # Make sure the user is a manager before doing any action specified
+  before_filter :manager, :only => [:new, :create, :edit, :update, :destroy]
+
   def index
     list
     render :action => 'list'