Skip to content

Commit

Permalink
Chore: Allow CA judge mode to return to mentor mode
Browse files Browse the repository at this point in the history
For club ambassadors who are mentors and judges, if they are in judge
mode, this will allow them to return to mentor mode.

Refs: #5349
  • Loading branch information
shaun-technovation committed Feb 4, 2025
1 parent db84a04 commit a3d2680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def can_switch_to_judge?
end

def can_switch_to_mentor?
if is_an_ambassador?
if chapter_ambassador? || club_ambassador?
true
elsif is_a_judge?
!!ENV.fetch("ENABLE_MENTOR_MODE_FOR_ALL_JUDGES", false) ||
Expand Down

0 comments on commit a3d2680

Please sign in to comment.