commit
8ac37e1d91
@ -63,9 +63,9 @@ if (!$error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
|
$socid = '';
|
||||||
if (!empty($user->socid)) {
|
if (!empty($user->socid)) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
$object->id = $user->socid;
|
|
||||||
}
|
}
|
||||||
restrictedArea($user, 'propal', $object->id);
|
restrictedArea($user, 'propal', $object->id);
|
||||||
|
|
||||||
|
|||||||
@ -45,13 +45,6 @@ $confirm = GETPOST('confirm', 'alpha');
|
|||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
|
|
||||||
// Security check
|
|
||||||
$socid = '';
|
|
||||||
if (!empty($user->socid)) {
|
|
||||||
$socid = $user->socid;
|
|
||||||
}
|
|
||||||
$result = restrictedArea($user, 'propal', $id);
|
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
|
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
|
||||||
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
||||||
@ -84,9 +77,9 @@ $object->fetch($id, $ref);
|
|||||||
$permissiontoadd = $user->rights->propal->creer;
|
$permissiontoadd = $user->rights->propal->creer;
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
|
$socid = '';
|
||||||
if (!empty($user->socid)) {
|
if (!empty($user->socid)) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
$object->id = $user->socid;
|
|
||||||
}
|
}
|
||||||
restrictedArea($user, 'propal', $object->id);
|
restrictedArea($user, 'propal', $object->id);
|
||||||
|
|
||||||
|
|||||||
@ -49,9 +49,9 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
|
$socid = '';
|
||||||
if ($user->socid > 0) {
|
if ($user->socid > 0) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
$object->id = $user->socid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user