Skip to content

Commit

Permalink
Merge pull request #1374 from Evarisk/8.5.1
Browse files Browse the repository at this point in the history
[Status] fix: reliability with digirisk status
  • Loading branch information
nicolas-eoxia authored Dec 14, 2021
2 parents 3e2f358 + e016339 commit cb4b5e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Informations

Version du module: 8.5.0
Version du module: 8.5.1

Dernière mise à jour: 14/12/2021

Expand Down
4 changes: 0 additions & 4 deletions class/api_digiriskdolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ public function enableModule()
$modApi->init();
$langs->loadLangs(array("digiriskdolibarr@digiriskdolibarr", "other"));

if (!$user->rights->digiriskdolibarr->api->read) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}

return $this->mod->init();
}

Expand Down
8 changes: 4 additions & 4 deletions core/modules/modDigiriskDolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct($db)
$this->descriptionlong = "Digirisk";
$this->editor_name = 'Evarisk';
$this->editor_url = 'https://evarisk.com';
$this->version = '8.5.0';
$this->version = '8.5.1';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->picto ='digiriskdolibarr@digiriskdolibarr';

Expand Down Expand Up @@ -931,10 +931,10 @@ public function init($options = '')
$this->_load_tables('/digiriskdolibarr/sql/');

// Load sql sub folders
$sqlFolder = dol_dir_list(__DIR__ . '/../../sql');
$sqlFolder = scandir(__DIR__ . '/../../sql');
foreach ($sqlFolder as $subFolder) {
if ($subFolder['type'] == 'dir') {
$this->_load_tables('/digiriskdolibarr/sql/' . $subFolder['name'] . '/');
if (!preg_match('/\./', $subFolder)) {
$this->_load_tables('/digiriskdolibarr/sql/' . $subFolder . '/');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct($db)
$this->name = preg_replace('/^Interface/i', '', get_class($this));
$this->family = "demo";
$this->description = "Digiriskdolibarr triggers.";
$this->version = '8.5.0';
$this->version = '8.5.1';
$this->picto = 'digiriskdolibarr@digiriskdolibarr';
}

Expand Down

0 comments on commit cb4b5e6

Please sign in to comment.