OSDN Git Service

fix profiler extend system
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index 2b1f42c..55f54d1 100644 (file)
@@ -70,6 +70,10 @@ class ApplicationController < ActionController::Base
     authenticate_user! unless @operators.resource_reader?
   end
   
+  def authenticate_admin
+    authenticate_admin! unless @operators.admin?
+  end
+  
   def authenticate_author
     if @operators.author
       true