diff options
| author | Kir | 2011-11-01 20:23:57 +0400 |
|---|---|---|
| committer | Kir | 2011-11-01 20:23:57 +0400 |
| commit | e855fb8574570934cde28cfb190cc3cba31fbec0 (patch) | |
| tree | 8cd131551d43b3aaa13d7d7e71517b1424271ff0 /app/controllers | |
| parent | 6477ad7cdba8a06fa00be6c374aaa1cad2d2f505 (diff) | |
| download | inboxes-e855fb8574570934cde28cfb190cc3cba31fbec0.tar.bz2 | |
New scope and templates
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/speakers_controller.rb | 2 |
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 |
