Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable startpage #1990

Merged
merged 7 commits into from
Sep 11, 2023
Merged

Add configurable startpage #1990

merged 7 commits into from
Sep 11, 2023

Conversation

janno42
Copy link
Member

@janno42 janno42 commented Jul 31, 2023

fix #1742; make start page configurable

evap/evaluation/views.py Outdated Show resolved Hide resolved
evap/evaluation/views.py Show resolved Hide resolved
evap/evaluation/views.py Outdated Show resolved Hide resolved
evap/evaluation/templates/startpage_button.html Outdated Show resolved Hide resolved
evap/evaluation/views.py Outdated Show resolved Hide resolved
Comment on lines 1845 to 1847
return [self.is_student, self.is_responsible_or_contributor_or_delegate, self.is_grade_publisher].count(
True
) > 1
Copy link
Member

@niklasmohrin niklasmohrin Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could a user lose their status as for example "student" and then be unable to update their startpage? In addition I think this should also be "participant" instead of student (and maybe the other thing is not a problem anymore then?)

In general, maybe we should have can_visit_student_index etc to not have this knowledge duplicated? (Sorry for the general scope bleed :/ )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didn't implement anything like can_visit_student_index because this might get even more confusing when thinking about staff mode.

Copy link
Member

@richardebeling richardebeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm after the conflict of is_student vs is_participant is resolved.

@janno42 janno42 merged commit 4e7c8a7 into e-valuation:main Sep 11, 2023
@janno42 janno42 deleted the startpage branch September 11, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Configurable start page
3 participants