commit
8eae14fb01
@ -91,7 +91,7 @@ if ($user->socid > 0 && ($object->fk_soc != $user->socid)) {
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
// or for unauthorized internals users
|
// or for unauthorized internals users
|
||||||
if (!$user->socid && ($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY && $object->fk_user_assign != $user->id) && !$user->rights->ticket->manage) {
|
if (!$user->socid && (!empty($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY) && $object->fk_user_assign != $user->id) && !$user->rights->ticket->manage) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ if ($socid > 0) {
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$user->socid && $conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY) {
|
if (!$user->socid && !empty($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY)) {
|
||||||
$object->next_prev_filter = "te.fk_user_assign = '".$user->id."'";
|
$object->next_prev_filter = "te.fk_user_assign = '".$user->id."'";
|
||||||
} elseif ($user->socid > 0) {
|
} elseif ($user->socid > 0) {
|
||||||
$object->next_prev_filter = "te.fk_soc = '".$user->socid."'";
|
$object->next_prev_filter = "te.fk_soc = '".$user->socid."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user