Skip to content

Commit cdf57b6

Browse files
committed
Volunteers are redirected to checkin route
1 parent 3f2a30c commit cdf57b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/controllers/manage/application_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ def logged_in
99
end
1010

1111
def require_director
12-
return redirect_to manage_root_path if current_user.staff? && !current_user.try(:director?)
12+
return redirect_to manage_checkins_path if current_user.volunteer?
13+
return redirect_to manage_root_path if current_user.organizer?
1314
return redirect_to root_path unless current_user.try(:director?)
1415
end
1516

1617
def require_director_or_organizer
17-
return redirect_to manage_root_path if current_user.staff? && !current_user.organizing_staff?
18+
return redirect_to manage_checkins_path if current_user.volunteer?
1819
return redirect_to root_path unless current_user.organizing_staff?
1920
end
2021

0 commit comments

Comments
 (0)