Skip to content

Commit

Permalink
Display organization name after validation JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
taitus committed Dec 20, 2017
1 parent 8291c5c commit f0fd7d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/admin/events_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ def check_filter_lobby_activity
end

def admin_or_mananger_edit?
(current_user.admin? || current_user.user?) && params[:action] == "edit"
(current_user.admin? || current_user.user?) &&
(params[:action] == "edit" || params[:action] == "update")
end

def calculate_firstname(event)
Expand Down

0 comments on commit f0fd7d4

Please sign in to comment.