Skip to content

Commit

Permalink
Fix issue where an admin couldn't add students to their own class (he…
Browse files Browse the repository at this point in the history
…dyorg#3296)

Co-authored-by: Felienne Hermans <[email protected]>
  • Loading branch information
TiBiBa and Felienne authored Sep 22, 2022
1 parent 59e60e4 commit 7b2fca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_class(user, class_id):
page_title=gettext('title_class-overview'),
achievement=achievement, invites=invites,
class_info={'students': students, 'link': os.getenv('BASE_URL') + '/hedy/l/' + Class['link'],
'name': Class['name'], 'id': Class['id']})
'teacher': Class['teacher'], 'name': Class['name'], 'id': Class['id']})

@app.route('/class', methods=['POST'])
@requires_login
Expand Down

0 comments on commit 7b2fca9

Please sign in to comment.