aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorKir2011-11-01 20:23:57 +0400
committerKir2011-11-01 20:23:57 +0400
commite855fb8574570934cde28cfb190cc3cba31fbec0 (patch)
tree8cd131551d43b3aaa13d7d7e71517b1424271ff0 /app/controllers
parent6477ad7cdba8a06fa00be6c374aaa1cad2d2f505 (diff)
downloadinboxes-e855fb8574570934cde28cfb190cc3cba31fbec0.tar.bz2
New scope and templates
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/speakers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/speakers_controller.rb b/app/controllers/speakers_controller.rb
index 7fd5f1e..17cedb9 100644
--- a/app/controllers/speakers_controller.rb
+++ b/app/controllers/speakers_controller.rb
@@ -14,7 +14,7 @@ class SpeakersController < ApplicationController
@speaker = Speaker.find(params[:id])
@speaker.destroy
flash[:notice] = t("views.speakers.removed")
- redirect_to @discussion.speakers.any? ? @discussion : discussions_url
+ redirect_to @discussion.speakers.any? && @discussion.can_participate?(current_user) ? @discussion : discussions_url
end
private