Update admin_establishment.php

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

View File

@ -16,10 +16,12 @@
*/
/**
* \file htdocs/hrm/admin/admin_establishment.php
* \ingroup HRM
* \brief HRM Establishment module setup page
* \file htdocs/hrm/admin/admin_establishment.php
* \ingroup HRM
* \brief HRM Establishment module setup page
*/
// Load Dolibarr environment
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm.lib.php';
require_once DOL_DOCUMENT_ROOT.'/hrm/class/establishment.class.php';
@ -29,8 +31,9 @@ $langs->loadLangs(array('admin', 'hrm'));
$error = 0;
// Permissions
$permissiontoread = $user->admin;
$permissiontoadd = $user->admin;
$permissiontoadd = $user->admin;
// Security check - Protection if external user
//if ($user->socid > 0) accessforbidden();