Skip to content

Commit

Permalink
fix is_student/is_participant
Browse files Browse the repository at this point in the history
  • Loading branch information
janno42 committed Sep 11, 2023
1 parent 15eb5d2 commit 04e107e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evap/evaluation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ def is_responsible_or_contributor_or_delegate(self):

@cached_property
def show_startpage_button(self):
return [self.is_student, self.is_responsible_or_contributor_or_delegate, self.is_grade_publisher].count(
return [self.is_participant, self.is_responsible_or_contributor_or_delegate, self.is_grade_publisher].count(
True
) > 1

Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def redirect_user_to_start_page(user):
return redirect("staff:semester_view", active_semester.id)
return redirect("staff:index")

if user.startpage == UserProfile.StartPage.STUDENT and user.is_student:
if user.startpage == UserProfile.StartPage.STUDENT and user.is_participant:
return redirect("student:index")
if user.startpage == UserProfile.StartPage.CONTRIBUTOR and user.is_responsible_or_contributor_or_delegate:
return redirect("contributor:index")
Expand Down

0 comments on commit 04e107e

Please sign in to comment.