X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fpmwiki.platalAuth.php;h=f5a783186d4b8f0b369b8b12aa1f5925419f16b7;hb=801fcad813666310da1ca5b6f07f91cfed1abbee;hp=e6974e74e0dd2ca6af6a143bb535d55cff298103;hpb=172ec1475b515464799183a987f1f48b31e1da04;p=platal.git diff --git a/plugins/pmwiki.platalAuth.php b/plugins/pmwiki.platalAuth.php index e6974e7..f5a7831 100644 --- a/plugins/pmwiki.platalAuth.php +++ b/plugins/pmwiki.platalAuth.php @@ -108,7 +108,7 @@ function auth_pmwiki_to_smarty($text, $pass) // and translate any auth from the wiki to smarty auth function AuthPlatal($pagename, $level, $authprompt, $since) { - global $Conditions; + global $Conditions, $page; $authUser = false; $authPage = false; @@ -157,14 +157,15 @@ function AuthPlatal($pagename, $level, $authprompt, $since) // if we arrive here, the user doesn't have enough permission to access page + // FIXME: seems to be broken, will be better soon + new_skinned_page('index.tpl'); // maybe it is because he is not identified if ($authprompt && !S::identified()) { - new_identification_page(); + XorgSession::doAuth($page); } - global $page; - new_identification_page(); + XorgSession::doAuth($page); if (S::has_perms()) { $page->trig('Erreur : page Wiki inutilisable sur plat/al'); } else {