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
@ordergroup = @current_user.ordergroup
if @ordergroup.nil?
flash[:notice] = 'Sie gehören keiner Bestellgruppe an.'
redirect_to :controller => root_path
redirect_to root_url, :alert => "Du bist kein Mitglieder einer Bestellgruppe."
end
end