From 23ff6dd6369715719cf1d4279b2f7c24126e96c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 1 Jun 2010 13:46:00 +0200 Subject: [PATCH] S::has_perms() has been replaced by S::admin(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile.php | 2 +- modules/xnetgrp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.1.4