mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
use isModEnabled function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user