use isModEnabled
This commit is contained in:
parent
40c5be6f7f
commit
cfa10bb8ba
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* 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---
|
* Copyright (C) ---Put here your own copyright and developer email---
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
@ -101,8 +101,10 @@ class mymodulewidget1 extends ModeleBoxes
|
|||||||
|
|
||||||
$this->param = $param;
|
$this->param = $param;
|
||||||
|
|
||||||
//$this->enabled = $conf->global->FEATURES_LEVEL > 0; // Condition when module is enabled or not
|
// Condition when module is enabled or not
|
||||||
//$this->hidden = ! ($user->rights->mymodule->myobject->read); // Condition when module is visible by user (test on permission)
|
// $this->enabled = getDolGlobalInt('MAIN_FEATURES_LEVEL') > 0;
|
||||||
|
// Condition when module is visible by user (test on permission)
|
||||||
|
// $this->hidden = !$user->hasRight('mymodule', 'myobject', 'read');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user