// missing static keyword
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7911 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
239f92eaf1
commit
03ffa388af
1 file changed
+2
-2
+2
-2
@@ -1193,12 +1193,12 @@ abstract class ModuleCore
|
|||||||
return self::getPermissionStatic($this->id, $variable, $employee);
|
return self::getPermissionStatic($this->id, $variable, $employee);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPermissionStatic($id_module, $variable, $employee = null)
|
public static function getPermissionStatic($id_module, $variable, $employee = null)
|
||||||
{
|
{
|
||||||
if (!in_array($variable, array('view', 'configure')))
|
if (!in_array($variable, array('view', 'configure')))
|
||||||
return false;
|
return false;
|
||||||
if (!$employee)
|
if (!$employee)
|
||||||
$employee = $this->context->employee;
|
$employee = Context::getContext()->employee;
|
||||||
if (!isset($cache_permissions[$employee->id_profile]))
|
if (!isset($cache_permissions[$employee->id_profile]))
|
||||||
{
|
{
|
||||||
$cache_permissions[$employee->id_profile] = array();
|
$cache_permissions[$employee->id_profile] = array();
|
||||||
|
|||||||
Reference in new issue
Block a user