Merge pull request #22222 from dolibit-ut/patch-592
Update admin_hrm.php
This commit is contained in:
commit
d8fdd847f1
@ -16,10 +16,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/hrm/admin/admin_hrm.php
|
* \file htdocs/hrm/admin/admin_hrm.php
|
||||||
* \ingroup HRM
|
* \ingroup HRM
|
||||||
* \brief HRM module setup page
|
* \brief HRM module setup page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Load Dolibarr environment
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/hrm.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/hrm.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||||
@ -27,6 +29,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('admin', 'hrm'));
|
$langs->loadLangs(array('admin', 'hrm'));
|
||||||
|
|
||||||
|
// Get Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
|
|
||||||
// Other parameters HRM_*
|
// Other parameters HRM_*
|
||||||
@ -34,8 +37,9 @@ $list = array(
|
|||||||
// 'HRM_EMAIL_EXTERNAL_SERVICE' // To prevent your public accountant for example
|
// 'HRM_EMAIL_EXTERNAL_SERVICE' // To prevent your public accountant for example
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Permissions
|
||||||
$permissiontoread = $user->admin;
|
$permissiontoread = $user->admin;
|
||||||
$permissiontoadd = $user->admin;
|
$permissiontoadd = $user->admin;
|
||||||
|
|
||||||
// Security check - Protection if external user
|
// Security check - Protection if external user
|
||||||
//if ($user->socid > 0) accessforbidden();
|
//if ($user->socid > 0) accessforbidden();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user