From: Stéphane Jacob Date: Tue, 1 Jun 2010 11:46:00 +0000 (+0200) Subject: S::has_perms() has been replaced by S::admin(). X-Git-Tag: xorg/1.0.0~210 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=23ff6dd6369715719cf1d4279b2f7c24126e96c8;p=platal.git S::has_perms() has been replaced by S::admin(). Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile.php b/modules/profile.php index 855e7db..0569db3 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -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."); diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index aacc262..0e1af54 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -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');