1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Only show active semester after user update for own user

This commit is contained in:
Mo 2022-09-19 17:04:32 +02:00
parent a5b5c4156c
commit adbe8d0eb7

View file

@ -289,7 +289,8 @@ class UserView(SecureAdminModelView):
category="success", category="success",
) )
else: else:
flash(f"Active semester is {model.active_semester}.", "warning") if model == current_user:
flash(f"Active semester is {model.active_semester}.", "warning")
class SemesterView(SecureAdminModelView): class SemesterView(SecureAdminModelView):