Merge pull request #22218 from dolibit-ut/patch-588
Update skill_tab.php
This commit is contained in:
commit
970359af26
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user