Clean code
This commit is contained in:
parent
d7d9c8c338
commit
419b225120
@ -64,17 +64,17 @@ class modCron extends DolibarrModules
|
||||
//-------------
|
||||
$this->config_page_url = array("cron.php@cron");
|
||||
|
||||
// Dependancies
|
||||
//-------------
|
||||
// Dependancies
|
||||
//-------------
|
||||
$this->hidden = !empty($conf->global->MODULE_CRON_DISABLED); // A condition to disable module
|
||||
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
|
||||
$this->requiredby = array(); // List of modules id to disable if this one is disabled
|
||||
$this->requiredby = array(); // List of modules id to disable if this one is disabled
|
||||
$this->conflictwith = array(); // List of modules id this module is in conflict with
|
||||
$this->langfiles = array("cron");
|
||||
$this->langfiles = array("cron");
|
||||
|
||||
// Constants
|
||||
//-----------
|
||||
$this->const = array(
|
||||
// Constants
|
||||
//-----------
|
||||
$this->const = array(
|
||||
0=>array(
|
||||
'CRON_KEY',
|
||||
'chaine',
|
||||
|
||||
@ -49,6 +49,9 @@ ALTER TABLE llx_inventory ADD COLUMN import_key varchar(14);
|
||||
|
||||
-- For 8.0
|
||||
|
||||
-- delete old permission no more used
|
||||
DELETE FROM llx_rights_def WHERE perms = 'main' and module = 'commercial';
|
||||
|
||||
delete from llx_rights_def where perms IS NULL;
|
||||
delete from llx_user_rights where fk_user not IN (select rowid from llx_user);
|
||||
delete from llx_usergroup_rights where fk_usergroup not in (select rowid from llx_usergroup);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user