Fixed ordering before filter.
This commit is contained in:
parent
afb2c26ab3
commit
5b2df07378
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue