From 73b2b930263ff19715540307aba38a7981f3cecf Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 7 Mar 2011 18:55:19 +0100 Subject: [PATCH] Refetches session's user when she updates her bestalias. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/email.php | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.1.4