mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-07 17:42:53 +01:00
use isModEnabled
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2018-2023 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) ---Put here your own copyright and developer email---
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -101,8 +101,10 @@ class mymodulewidget1 extends ModeleBoxes
|
||||
|
||||
$this->param = $param;
|
||||
|
||||
//$this->enabled = $conf->global->FEATURES_LEVEL > 0; // Condition when module is enabled or not
|
||||
//$this->hidden = ! ($user->rights->mymodule->myobject->read); // Condition when module is visible by user (test on permission)
|
||||
// Condition when module is enabled or not
|
||||
// $this->enabled = getDolGlobalInt('MAIN_FEATURES_LEVEL') > 0;
|
||||
// Condition when module is visible by user (test on permission)
|
||||
// $this->hidden = !$user->hasRight('mymodule', 'myobject', 'read');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user