OSDN Git Service

t#30137:fix authenticate
[pettanr/pettanr.git] / app / controllers / ground_colors_controller.rb
index 5346ff1..39ecdda 100644 (file)
@@ -21,7 +21,7 @@ class GroundColorsController < ApplicationController
   end
   
   def show
-    @ground_color = GroundColor.show(params[:id], @author)
+    @ground_color = GroundColor.show(params[:id], [@author, @admin])
     respond_to do |format|
       format.html # show.html.erb
       format.json { render json: @ground_color.to_json(GroundColor.show_json_opt) }