phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4242 - phpcompta/branches/rel600-dynamic-menu/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4242 - phpcompta/branches/rel600-dynamic-menu/include
Date: Thu, 27 Oct 2011 21:54:41 +0200 (CEST)

Author: danydb
Date: 2011-10-27 21:54:39 +0200 (Thu, 27 Oct 2011)
New Revision: 4242

Modified:
   phpcompta/branches/rel600-dynamic-menu/include/ac_common.php
Log:
#241 : modularity : gestion card + gestion IMP



Modified: phpcompta/branches/rel600-dynamic-menu/include/ac_common.php
===================================================================
--- phpcompta/branches/rel600-dynamic-menu/include/ac_common.php        
2011-10-27 19:46:26 UTC (rev 4241)
+++ phpcompta/branches/rel600-dynamic-menu/include/ac_common.php        
2011-10-27 19:54:39 UTC (rev 4242)
@@ -741,12 +741,16 @@
     }
     else
     {
+/**
+ * @todo add security
+ * check if user can access this module
+ */
        $file=$cn->get_value("select me_file
-       from v_all_menu
+       from menu_ref
        where
-       user_name=$1 and me_code=$2 and
+       me_code=$1 and
        (me_file is not null or trim(me_file) <>'')",
-           array($g_user->login,$module[$idx]));
+           array($module[$idx]));
 
        if ( $file != "" )
        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]