S::has_perms() has been replaced by S::admin().
authorStéphane Jacob <sj@m4x.org>
Tue, 1 Jun 2010 11:46:00 +0000 (13:46 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 1 Jun 2010 11:46:30 +0000 (13:46 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile.php
modules/xnetgrp.php

index 855e7db..0569db3 100644 (file)
@@ -209,7 +209,7 @@ class ProfileModule extends PLModule
         if (is_null($id)) {
             return PL_NOT_FOUND;
         }
-        $pid = (!is_numeric($id) || S::has_perms()) ? Profile::getPID($id) : null;
+        $pid = (!is_numeric($id) || S::admin()) ? Profile::getPID($id) : null;
         if (is_null($pid)) {
             if (S::logged()) {
                 $page->trigError($id . " inconnu dans l'annuaire.");
index aacc262..0e1af54 100644 (file)
@@ -163,7 +163,7 @@ class XnetGrpModule extends PLModule
             } else {
                 $site = "";
             }
-            if (S::has_perms()) {
+            if (S::admin()) {
                 $dom = XDB::iterator('SELECT  *
                                         FROM  group_dom
                                     ORDER BY  nom');