Merge pull request #11027 from AXeL-dev/patch-8
Fix debugbar module class
This commit is contained in:
commit
99f5bf2a6c
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* This program is free software; you can redistribute it and/or modify
|
/* Copyright (C) 2019-2020 AXeL-dev <contact.axel.dev@gmail.com>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
* the Free Software Foundation; either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
@ -103,19 +105,4 @@ class modDebugBar extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Function called after module configuration.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function loadSettings()
|
|
||||||
{
|
|
||||||
$this->addPermission("use", "UseDebugBar", "u");
|
|
||||||
|
|
||||||
$this->enableHooks(array(
|
|
||||||
'main',
|
|
||||||
'login'
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user