Fixed missing error message.
This commit is contained in:
parent
d470c660d8
commit
f4edfacd91
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class ApplicationController < ActionController::Base
|
||||||
def authenticate_membership_or_admin
|
def authenticate_membership_or_admin
|
||||||
@group = Group.find(params[:id])
|
@group = Group.find(params[:id])
|
||||||
unless @group.member?(@current_user) or @current_user.role_admin?
|
unless @group.member?(@current_user) or @current_user.role_admin?
|
||||||
flash[:error] = ERROR_NO_GROUP_MEMBER
|
flash[:error] = "Diese Aktion ist nur für Mitglieder der Gruppe erlaubt!"
|
||||||
if request.xml_http_request?
|
if request.xml_http_request?
|
||||||
render(:update) {|page| page.redirect_to root_path }
|
render(:update) {|page| page.redirect_to root_path }
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue