Merge pull request #22211 from dolibit-ut/patch-581
Update position_note.php
This commit is contained in:
commit
d6517c4234
@ -20,8 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file position_note.php
|
* \file htdocs/hrm/position_note.php
|
||||||
* \ingroup hrm
|
|
||||||
* \ingroup hrm
|
* \ingroup hrm
|
||||||
* \brief Tab for notes on Position
|
* \brief Tab for notes on Position
|
||||||
*/
|
*/
|
||||||
@ -30,12 +29,14 @@
|
|||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
|
||||||
|
require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';;
|
||||||
require_once DOL_DOCUMENT_ROOT . '/hrm/class/position.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/hrm/class/position.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_position.lib.php';
|
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_position.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';;
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("hrm", "companies"));
|
$langs->loadLangs(array('hrm', 'companies'));
|
||||||
|
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
@ -58,6 +59,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
$upload_dir = $conf->hrm->multidir_output[$object->entity]."/".$object->id;
|
$upload_dir = $conf->hrm->multidir_output[$object->entity]."/".$object->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Permissions
|
||||||
$permissionnote = $user->rights->hrm->all->write;
|
$permissionnote = $user->rights->hrm->all->write;
|
||||||
$permissiontoread = $user->rights->hrm->all->read; // Used by the include of actions_addupdatedelete.inc.php
|
$permissiontoread = $user->rights->hrm->all->read; // Used by the include of actions_addupdatedelete.inc.php
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user