Update skill_note.php

This commit is contained in:
UT from dolibit 2022-09-11 11:38:33 +02:00 committed by GitHub
parent cc4bb9b40f
commit e617c2678b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@
*/ */
/** /**
* \file skill_note.php * \file htdocs/hrm/skill_note.php
* \ingroup hrm * \ingroup hrm
* \brief Tab for notes on skill * \brief Tab for notes on skill
*/ */
@ -33,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT . '/hrm/class/skill.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_skill.lib.php'; require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_skill.lib.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');
@ -56,6 +56,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