diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index b6c71989acc..aacf6a00251 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -90,8 +90,8 @@ if ($fulldayevent) { // Security check $socid = GETPOST('socid', 'int'); $id = GETPOST('id', 'int'); -if ($user->socid) { - $socid = $user->socid; +if ($user->socid && ($socid != $user->socid)) { + accessforbidden(); } $error = GETPOST("error");