OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / controllers / license_groups_controller.rb
index b0f64dd..7c852cf 100644 (file)
@@ -1,10 +1,21 @@
 class LicenseGroupsController < ApplicationController
+  if Manifest.manifest.magic_numbers['run_mode'] == 0
+  else
+    before_filter :authenticate_reader, :only => [
+      :by_resource_picture, 
+      :count_by_resource_picture, 
+    ]
+  end
   before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
   
   def index
     filer_list
   end
   
+  def by_resource_picture
+    filer_list
+  end
+  
   def show_html_format format
     format.html {
       @license_group = @item
@@ -24,6 +35,10 @@ class LicenseGroupsController < ApplicationController
     list_count
   end
   
+  def count_by_resource_picture
+    list_count
+  end
+  
   def new
     form_new
   end