OSDN Git Service

t#30137:fix authenticate
[pettanr/pettanr.git] / app / controllers / speeches_controller.rb
index d911107..48141d3 100644 (file)
@@ -20,7 +20,7 @@ class SpeechesController < ApplicationController
   end
   
   def show
-    @speech = Speech.show(params[:id], @author)
+    @speech = Speech.show(params[:id], [@author, @admin])
     respond_to do |format|
       format.html # show.html.erb
       format.json { render json: @speech.to_json(Speech.show_json_opt) }