Update skill_tab.php

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

View File

@ -20,13 +20,12 @@
*/ */
/** /**
* \file skill_tab.php * \file htdocs/hrm/skill_tab.php
* \ingroup hrm * \ingroup hrm
* \brief Page to add/delete/view skill to jobs/users * \brief Page to add/delete/view skill to jobs/users
*/ */
// Load Dolibarr environment // Load Dolibarr environment
require '../main.inc.php'; require '../main.inc.php';
@ -39,8 +38,9 @@ require_once DOL_DOCUMENT_ROOT . '/hrm/class/skillrank.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", "other")); $langs->loadLangs(array('hrm', 'other'));
// Get Parameters
$id = GETPOST('id', 'int'); $id = GETPOST('id', 'int');
$TSkillsToAdd = GETPOST('fk_skill', 'array'); $TSkillsToAdd = GETPOST('fk_skill', 'array');
$objecttype = GETPOST('objecttype', 'alpha'); $objecttype = GETPOST('objecttype', 'alpha');
@ -73,6 +73,7 @@ $hookmanager->initHooks(array('skilltab', 'globalcard')); // Note that conf->hoo
// Load object // Load object
include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once. include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
// Permissions
$permissiontoread = $user->rights->hrm->all->read; $permissiontoread = $user->rights->hrm->all->read;
$permissiontoadd = $user->rights->hrm->all->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php $permissiontoadd = $user->rights->hrm->all->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php