We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f2a30c commit cdf57b6Copy full SHA for cdf57b6
app/controllers/manage/application_controller.rb
@@ -9,12 +9,13 @@ def logged_in
9
end
10
11
def require_director
12
- return redirect_to manage_root_path if current_user.staff? && !current_user.try(:director?)
+ return redirect_to manage_checkins_path if current_user.volunteer?
13
+ return redirect_to manage_root_path if current_user.organizer?
14
return redirect_to root_path unless current_user.try(:director?)
15
16
17
def require_director_or_organizer
- return redirect_to manage_root_path if current_user.staff? && !current_user.organizing_staff?
18
19
return redirect_to root_path unless current_user.organizing_staff?
20
21
0 commit comments