Bug fix for Login class and read sub data for edit access block
This commit is contained in:
@@ -64,6 +64,8 @@
|
|||||||
$cms->menu_show_flag = 'main';
|
$cms->menu_show_flag = 'main';
|
||||||
// db nfo
|
// db nfo
|
||||||
$cms->db_info();
|
$cms->db_info();
|
||||||
|
// set acl
|
||||||
|
$cms->acl = $login->acl;
|
||||||
//------------------------------ class init end
|
//------------------------------ class init end
|
||||||
|
|
||||||
//------------------------------ logging start
|
//------------------------------ logging start
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* with your name on it ...
|
* with your name on it ...
|
||||||
* DESCRIPTION
|
* DESCRIPTION
|
||||||
* Basic Admin interface backend
|
* Basic Admin interface backend
|
||||||
* - sets ACLs
|
|
||||||
* - sets action flags
|
* - sets action flags
|
||||||
* - menu creation
|
* - menu creation
|
||||||
* - array vars for smarty
|
* - array vars for smarty
|
||||||
@@ -45,11 +44,8 @@
|
|||||||
public $action_loaded;
|
public $action_loaded;
|
||||||
public $action_value;
|
public $action_value;
|
||||||
public $action_error;
|
public $action_error;
|
||||||
// DEPRICATED -> use login acl
|
// ACL array variable if we want to set acl data from outisde
|
||||||
// public $page_acl; // the acl the user has on this page
|
public $acl = array ();
|
||||||
// public $default_acl;
|
|
||||||
// DEPRICATED access rights
|
|
||||||
// public $access_rights = array ();
|
|
||||||
// the current active edit access id
|
// the current active edit access id
|
||||||
public $edit_access_id;
|
public $edit_access_id;
|
||||||
// error/warning/info messages
|
// error/warning/info messages
|
||||||
|
|||||||
@@ -409,7 +409,7 @@
|
|||||||
$ea_data = array ();
|
$ea_data = array ();
|
||||||
while ($res_sub = $this->db_return($q_sub))
|
while ($res_sub = $this->db_return($q_sub))
|
||||||
{
|
{
|
||||||
$ea_data[$res_sub['name']] = $res['value'];
|
$ea_data[$res_sub['name']] = $res_sub['value'];
|
||||||
}
|
}
|
||||||
// build master unit array
|
// build master unit array
|
||||||
$unit_access[$res['edit_access_id']] = array (
|
$unit_access[$res['edit_access_id']] = array (
|
||||||
|
|||||||
Reference in New Issue
Block a user