X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fcontrollers%2Fresource_pictures_controller.rb;h=a0847fe5821d39157e26215eb523a60864b7067d;hb=32af7a076b4244f157cb560d156e86d183a148e3;hp=644e735a4fa249ff7a4bae9c0fce695ba089b689;hpb=467daaf74bbf62a7ad43d7af7fd6326bfacd9010;p=pettanr%2Fpettanr.git diff --git a/app/controllers/resource_pictures_controller.rb b/app/controllers/resource_pictures_controller.rb index 644e735a..a0847fe5 100644 --- a/app/controllers/resource_pictures_controller.rb +++ b/app/controllers/resource_pictures_controller.rb @@ -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