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:
parent
a5b5c4156c
commit
adbe8d0eb7
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue