[Almidon-dev] r300 - Mejorando filtro de tablas por usuario : trunk/php
almidon at guegue.net
almidon at guegue.net
Fri Apr 30 08:16:38 CST 2010
Author: javier
Date: 2010-04-30 08:16:38 -0600 (Fri, 30 Apr 2010)
New Revision: 300
Modified:
trunk/php/setup.autotables.php
Log:
Modified: trunk/php/setup.autotables.php
===================================================================
--- trunk/php/setup.autotables.php 2010-04-30 13:06:37 UTC (rev 299)
+++ trunk/php/setup.autotables.php 2010-04-30 14:16:38 UTC (rev 300)
@@ -23,7 +23,7 @@
if (!empty($table_datum['parent'])) $output .= " \$this->parent ='".$table_datum['parent']."';\n";
if (!empty($table_datum['child'])) $output .= " \$this->child ='".$table_datum['child']."';\n";
if (!empty($table_datum['restrictby']))
- $output .= " if (\$_SESSION['idalm_role'] !== 'full') \$this->filter = \"" . $table_datum['restrictby'] . "='\".\$_SESSION['idalm_user'].\"'\";\n";
+ $output .= " if (\$_SESSION['idalm_role'] !== 'full') \$this->filter = \"" . $table_datum['idalm_table'].'.'.$table_datum['restrictby'] . "='\".\$_SESSION['idalm_user'].\"'\";\n";
$output .= " \$this->title ='".$table_datum['alm_table']."';\n";
if (!empty($table_datum['orden']))
$output .= " \$this->order ='".$table_datum['orden']."';\n";
More information about the Almidon-dev
mailing list