Skip to content

Commit 3e1a0e0

Browse files
Updated account dashboard default notifications
Removed team and contestant check-in related messages for users with volunteer status
1 parent 2c710d2 commit 3e1a0e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/manager/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def dashboard(request):
3838
context['team_members'] = User.objects.filter(profile__team=request.user.profile.team).exclude(username=request.user.username)
3939

4040
# Generate account some useful account notifications
41-
if not request.user.profile.has_team():
41+
if not request.user.profile.has_team() and not request.user.profile.is_volunteer():
4242
messages.warning(
4343
request, 'You are not a member of a registered team. You must be a team member in order to compete. Check out the FAQ for more information.')
4444
if not request.user.profile.has_courses() and context['total_num_courses'] > 0:
@@ -47,7 +47,7 @@ def dashboard(request):
4747
if request.user.profile.fsu_id is None or request.user.profile.fsu_id == '':
4848
messages.info(
4949
request, 'Your FSU ID is blank. You must add it to your profile in order to receive extra credit. Check out the FAQ for more information.')
50-
if request.user.profile.fsu_num is None or request.user.profile.fsu_num == '':
50+
if (request.user.profile.fsu_num is None or request.user.profile.fsu_num == '') and not request.user.profile.is_volunteer():
5151
messages.info(
5252
request, 'Your FSU number is blank. You must add it to your profile in order to swipe check in using your FSUCard on contest day. Check out the FAQ for more information.')
5353

0 commit comments

Comments
 (0)