use isModEnabled function

This commit is contained in:
Frédéric France
2022-06-09 22:54:22 +02:00
parent 0b8179d7ef
commit e060e31e5b
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
global $conf, $langs, $user, $db;
$langs->loadLangs(array("admin", "other", "modulebuilder"));
if (!$user->admin || empty($conf->modulebuilder->enabled)) {
if (!$user->admin || !isModEnabled('modulebuilder')) {
accessforbidden();
}