makeopensource / devU

Autograder version 4
10 stars 13 forks source link

update role toggle functionality #111

Closed SantarinX closed 4 months ago

SantarinX commented 4 months ago

Proposed changes


update toggle to switch it to actual user's role in the course and prevent self-change in course detail page. if user is in student mode at home page and user is the instructor for the course, it will turn it into instructor when user go to the course detail page.

Types of changes


What types of changes does your code introduce? Put an x in the boxes that apply

Checklist


Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. This is simply a reminder of what we are going to look for before merging your code.