-
Notifications
You must be signed in to change notification settings - Fork 301
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
General
: Do not show certain buttons for tutors in lecture overview and course management
#7423
General
: Do not show certain buttons for tutors in lecture overview and course management
#7423
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tested on Legacy TS2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm, thanks for adding a small additional client test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on ts1, works as described for both tutor and instructor roles 👍🏻
…urse-manage-authorities' into bugfix/fix-manage-lecture-and-course-manage-authorities
0d193b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on ts1. All good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -254,7 +254,7 @@ <h4 class="text-center no-exercises mt-3 fw-medium">{{ 'artemisApp.course.noExer | |||
<span class="d-none d-xl-inline">{{ 'artemisApp.courseOverview.menu.messages' | artemisTranslate }}</span> | |||
</a> | |||
<a | |||
*ngIf="course.isAtLeastTutor" | |||
*ngIf="course.timeZone || course.isAtLeastInstructor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently don't load the tutorialGroupsConfiguration here and to keep this PR small I decided to only use the timeZone here, which is also a prerequisite for tutorials
General
: Hide unavailable buttons from tutors in lecture overview and course managementGeneral
: Fix button authorities for tutors in lecture overview and course management
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual tested on legacy ts2. Worked as expected... again ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General
: Fix button authorities for tutors in lecture overview and course managementGeneral
: Do not show certain buttons for tutors in lecture overview and course management
Checklist
General
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
Fixes #7422 and also some other occurrences I noticed when fixing this issue.
Description
Fixes authorities and hides the following buttons from tutors:
Lecture
: lecture unit creation page visible even if no permission #7422)Also shows the tutorials button in the course management tab bar of a specific course so tutors have access to their tutor groups and can sign up students. This is only possible after an instructor has configured the tutorial groups.
Steps for Testing
Prerequisites:
(Also see attached screenshots and links to examples on TS1)
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Screenshots
The hidden Buttons:
Manage button, e.g. here: https://artemis-test1.artemis.in.tum.de/courses/118/lectures/215
"Edit"/"Attachment"/"Units" buttons, e.g. here: https://artemis-test1.artemis.in.tum.de/course-management/118/lectures/215
Scores button and tutorials button not visible to tutors, e.g. here: https://artemis-test1.artemis.in.tum.de/course-management/118
Tutorials button visible in tab bar, e.g. here: https://artemis-test1.artemis.in.tum.de/course-management/118
Tutorials button visible in course management card, e.g. here: https://artemis-test1.artemis.in.tum.de/course-management under the test course section