From e93b6fc04c80a4b31c988f4b5a0b31fef9356a8e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2005 17:47:46 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Les=20permissions=20disponibles=20sont?= =?UTF-8?q?=20mise=20a=20niveau=20=E0=20l'entr=E9e=20de=20la=20page=20des?= =?UTF-8?q?=20permissions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/perms.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/admin/perms.php b/htdocs/admin/perms.php index 3fc25bef079..f55ec328143 100644 --- a/htdocs/admin/perms.php +++ b/htdocs/admin/perms.php @@ -60,6 +60,8 @@ print ''; // Charge les modules soumis a permissions +$db->begin(); + $dir = DOL_DOCUMENT_ROOT . "/includes/modules/"; $handle=opendir($dir); $modules = array(); @@ -74,6 +76,9 @@ while (($file = readdir($handle))!==false) include_once("../includes/modules/$file"); $objMod = new $modName($db); if ($objMod->rights_class) { + + $ret=$objMod->insert_permissions(); + $modules[$objMod->rights_class]=$objMod; //print "modules[".$objMod->rights_class."]=$objMod;"; } @@ -81,6 +86,9 @@ while (($file = readdir($handle))!==false) } } +$db->commit(); + + // Affiche lignes des permissions $sql ="SELECT r.id, r.libelle, r.module, r.bydefault"; $sql.=" FROM ".MAIN_DB_PREFIX."rights_def as r";