Fixed ordering before filter.

This commit is contained in:
benni 2011-06-10 13:58:50 +02:00
parent afb2c26ab3
commit 5b2df07378

View file

@ -191,8 +191,7 @@ class OrderingController < ApplicationController
def ensure_ordergroup_member def ensure_ordergroup_member
@ordergroup = @current_user.ordergroup @ordergroup = @current_user.ordergroup
if @ordergroup.nil? if @ordergroup.nil?
flash[:notice] = 'Sie gehören keiner Bestellgruppe an.' redirect_to root_url, :alert => "Du bist kein Mitglieder einer Bestellgruppe."
redirect_to :controller => root_path
end end
end end