Merge pull request #22219 from dolibit-ut/patch-589

Update skill_extrafields.php
This commit is contained in:
Laurent Destailleur 2022-09-13 15:20:38 +02:00 committed by GitHub
commit cb4d32c9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,9 @@
*/
/**
* \file admin/skill_extrafields.php
* \ingroup hrm
* \brief Page to setup extra fields of hrm
* \file htdocs/hrm/admin/skill_extrafields.php
* \ingroup hrm
* \brief Page to setup extra fields of hrm skills
*/
// Load Dolibarr environment
@ -48,6 +48,7 @@ $action = GETPOST('action', 'aZ09');
$attrname = GETPOST('attrname', 'alpha');
$elementtype = 'hrm_skill'; //Must be the $table_element of the class that manage extrafield
// Security check
if (!$user->admin) {
accessforbidden();
}