[-] 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:
mDeflotte
2012-04-03 15:14:09 +00:00
parent 298f174e6f
commit 69cc3a8563
2 changed files with 11 additions and 9 deletions
+4 -3
View File
@@ -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;
}
}