[-] BO : fixed bug #PSCFV-2859 - In my preferences, user can change his her profile
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16044 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -30,9 +30,6 @@ class AdminAccessControllerCore extends AdminController
|
||||
/* @var array : Black list of id_tab that do not have access */
|
||||
public $accesses_black_list = array();
|
||||
|
||||
/* @var int : id tab of controller AdminAccess */
|
||||
public $id_tab_access;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->table = 'access';
|
||||
@@ -44,9 +41,6 @@ class AdminAccessControllerCore extends AdminController
|
||||
// Blacklist AdminLogin
|
||||
$this->accesses_black_list[] = Tab::getIdFromClassName('AdminLogin');
|
||||
|
||||
// Get id tab of controller AdminAccess
|
||||
$this->id_tab_access = (int)Db::getInstance()->getValue('SELECT `id_tab` FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = "AdminAccess"');
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@@ -107,8 +101,7 @@ class AdminAccessControllerCore extends AdminController
|
||||
'access_edit' => $this->tabAccess['edit'],
|
||||
'perms' => array('view', 'add', 'edit', 'delete'),
|
||||
'modules' => $modules,
|
||||
'link' => $this->context->link,
|
||||
'id_tab_access' => (int)$this->id_tab_access
|
||||
'link' => $this->context->link
|
||||
);
|
||||
|
||||
return parent::renderForm();
|
||||
|
||||
Reference in New Issue
Block a user