From: Stéphane Jacob Date: Mon, 7 Mar 2011 17:55:19 +0000 (+0100) Subject: Refetches session's user when she updates her bestalias. X-Git-Tag: xorg/1.1.0~54 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=73b2b930263ff19715540307aba38a7981f3cecf;p=platal.git Refetches session's user when she updates her bestalias. Signed-off-by: Stéphane Jacob --- diff --git a/modules/email.php b/modules/email.php index f116ab5..21f251c 100644 --- a/modules/email.php +++ b/modules/email.php @@ -80,6 +80,8 @@ class EmailModule extends PLModule // plat/al's code, we do an a posteriori check on the // validity of the bestalias. fix_bestalias($user); + // Then refetch the user to update its bestalias. + S::set('user', User::getWithUID(S::user()->id())); } // Fetch and display aliases.