Skip to content
Snippets Groups Projects
Commit 1b504986 authored by Julian Rother's avatar Julian Rother
Browse files

More descriptive L2P permission error messages

parent 68caec6e
No related branches found
No related tags found
No related merge requests found
......@@ -423,6 +423,9 @@ def lecture(id):
if mode == 'rwth':
flash(text+'. <a target="_blank" class="reloadonclose" href="'+url_for('start_rwthauth')+'">Hier authorisieren</a>.')
elif mode == 'l2p':
if 'l2p_courses' in session:
flash(text+'. Du bist kein Teilnehmer des L2P-Kurses! <a target="_blank" class="reloadonclose" href="'+url_for('start_l2pauth')+'">Kurse aktualisieren</a>.')
else:
flash(text+'. <a target="_blank" class="reloadonclose" href="'+url_for('start_l2pauth')+'">Hier authorisieren</a>.')
else:
flash(text+'.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment