[-] Project : #PSFV-781 - Profile and access cannot be managed by SHOP
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14432 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -35,9 +35,10 @@ class AdminAccessControllerCore extends AdminController
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->table = 'access';
|
||||
$this->table = 'access';
|
||||
$this->className = 'Profile';
|
||||
$this->lang = false;
|
||||
$this->multishop_context = Shop::CONTEXT_ALL;
|
||||
$this->lang = false;
|
||||
$this->context = Context::getContext();
|
||||
|
||||
// Blacklist AdminLogin
|
||||
@@ -235,6 +236,6 @@ class AdminAccessControllerCore extends AdminController
|
||||
*/
|
||||
public function getCurrentProfileId()
|
||||
{
|
||||
return (isset($_GET['id_profile']) && !empty($_GET['id_profile']) && is_numeric($_GET['id_profile'])) ? (int)$_GET['id_profile'] : 1;
|
||||
return (isset($_GET['id_profile']) && !empty($_GET['id_profile']) && is_numeric($_GET['id_profile'])) ? (int)$_GET['id_profile'] : 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user