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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue