fix typo
This commit is contained in:
parent
822bfc957c
commit
00f10d1850
@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->load('projects', 'enevntorganization');
|
$langs->load('projects', 'enventorganization');
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
@ -45,7 +45,9 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be includ
|
|||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$socid = 0;
|
$socid = 0;
|
||||||
if ($user->socid > 0) $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement.
|
if ($user->socid > 0) {
|
||||||
|
$socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement.
|
||||||
|
}
|
||||||
$result = restrictedArea($user, 'eventorganization', $id);
|
$result = restrictedArea($user, 'eventorganization', $id);
|
||||||
|
|
||||||
$permissiontoread = $user->rights->eventorganization->read;
|
$permissiontoread = $user->rights->eventorganization->read;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user