[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / ecrire / inc / auth.php
index be9e706..c4b6f20 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -325,9 +325,18 @@ function auth_administrer($fonction,$args,$defaut=false){
        if ($auth = charger_fonction($auth_methode,'auth',true)
                AND function_exists($f="auth_{$auth_methode}_$fonction")
        )
-               return call_user_func_array($f, $args);
+               $res = call_user_func_array($f, $args);
        else
-               return $defaut;
+               $res = $defaut;
+       $res = pipeline('auth_administrer',array(
+               'args' => array(
+                       'fonction' => $fonction,
+                       'methode' => $auth_methode,
+                       'args' => $args
+               ),
+               'data' => $res
+       ));
+       return $res;
 }
 
 /**