Fixes a SQL error in the creation of a .net group.
[platal.git] / include / banana / hooks.inc.php
index d8cd9f1..6f9e8f0 100644 (file)
@@ -209,7 +209,7 @@ function make_Organization()
     global $globals;
     $perms = S::v('perms');
     $group = $globals->asso('nom');
-    if (S::has_perms()) {
+    if (S::admin()) {
         return "Administrateur de Polytechnique.org";
     } else if ($group && $perms->hasFlag('groupadmin')) {
         return "Animateur de $group";