// Context part 31
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
define('PS_ADMIN_DIR', getcwd());
|
||||
include_once(dirname(__FILE__).'/../config/config.inc.php');
|
||||
$cookie = new Cookie('psAdmin');
|
||||
|
||||
$module = Tools::getValue('module');
|
||||
$render = Tools::getValue('render');
|
||||
@@ -39,7 +38,7 @@ $height = Tools::getValue('height');
|
||||
$id_employee = Tools::getValue('id_employee');
|
||||
$id_lang = Tools::getValue('id_lang');
|
||||
|
||||
if ($cookie->id_employee != $id_employee)
|
||||
if (Context::getContext()->employee->id != $id_employee)
|
||||
die;
|
||||
|
||||
if (!Tools::file_exists_cache($module_path = dirname(__FILE__).'/../modules/'.$module.'/'.$module.'.php'))
|
||||
|
||||
Reference in New Issue
Block a user