// missing static keyword
This commit is contained in:
1 parent
90fcde2539
commit
4c5104462f
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