Fix SU on account.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 May 2010 20:12:11 +0000 (22:12 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 May 2010 20:12:11 +0000 (22:12 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/admin.php

index f0e7208..6ad3183 100644 (file)
@@ -395,7 +395,7 @@ class AdminModule extends PLModule
             pl_redirect("admin/logger?loguser=$login&year=".date('Y')."&month=".date('m'));
         }
 
-        if(Post::has('su_button') && $registered) {
+        if(Post::has('su_account') && $registered) {
             if (!Platal::session()->startSUID($user)) {
                 $page->trigError('Impossible d\'effectuer un SUID sur ' . $user->login());
             } else {