// throw error if problem in database integrity
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12643 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1558,6 +1558,10 @@ abstract class ModuleCore
|
||||
$cache_permissions[$employee->id_profile][$row['id_module']]['configure'] = $row['configure'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($cache_permissions[$employee->id_profile][$id_module]))
|
||||
throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');
|
||||
|
||||
return (bool)$cache_permissions[$employee->id_profile][$id_module][$variable];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user