mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge pull request #22211 from dolibit-ut/patch-581
Update position_note.php
This commit is contained in:
@@ -20,26 +20,27 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file position_note.php
|
||||
* \ingroup hrm
|
||||
* \ingroup hrm
|
||||
* \brief Tab for notes on Position
|
||||
* \file htdocs/hrm/position_note.php
|
||||
* \ingroup hrm
|
||||
* \brief Tab for notes on Position
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
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/lib/hrm_position.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';;
|
||||
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("hrm", "companies"));
|
||||
$langs->loadLangs(array('hrm', 'companies'));
|
||||
|
||||
|
||||
// Get parameters
|
||||
$id = GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$id = GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$cancel = GETPOST('cancel', 'aZ09');
|
||||
$backtopage = GETPOST('backtopage', 'alpha');
|
||||
@@ -58,7 +59,8 @@ if ($id > 0 || !empty($ref)) {
|
||||
$upload_dir = $conf->hrm->multidir_output[$object->entity]."/".$object->id;
|
||||
}
|
||||
|
||||
$permissionnote = $user->rights->hrm->all->write;
|
||||
// Permissions
|
||||
$permissionnote = $user->rights->hrm->all->write;
|
||||
$permissiontoread = $user->rights->hrm->all->read; // Used by the include of actions_addupdatedelete.inc.php
|
||||
|
||||
// Security check (enable the most restrictive one)
|
||||
|
||||
Reference in New Issue
Block a user