OSDN Git Service

add lg_id in resource picture
[pettanr/pettanr.git] / app / controllers / resource_pictures_controller.rb
index 644e735..a0847fe 100644 (file)
@@ -4,7 +4,7 @@ class ResourcePicturesController < ApplicationController
     before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
   else
     before_filter :authenticate_resource_reader, :only => [
-      :index, :show, :credit, :by_license, :by_artist, :count, :count_by_license, :count_by_artist
+      :index, :show, :credit, :by_license_group, :by_license, :by_artist, :count, :count_by_license_group, :count_by_license, :count_by_artist
     ]
     before_filter :authenticate_user, :only => [:new, :create, :update, :destroy]
     before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
@@ -18,6 +18,10 @@ class ResourcePicturesController < ApplicationController
     filer_list
   end
   
+  def by_license_group
+    filer_list
+  end
+  
   def by_license
     filer_list
   end
@@ -57,6 +61,10 @@ class ResourcePicturesController < ApplicationController
     list_count
   end
   
+  def count_by_license_group
+    list_count
+  end
+  
   def count_by_license
     list_count
   end