Merge pull request #24197 from glu000/16.0-issue-23966-2
FIX #[23799] - External users are not able to create events - correction
This commit is contained in:
commit
520280479c
@ -90,8 +90,8 @@ if ($fulldayevent) {
|
|||||||
// Security check
|
// Security check
|
||||||
$socid = GETPOST('socid', 'int');
|
$socid = GETPOST('socid', 'int');
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
if ($user->socid) {
|
if ($user->socid && ($socid != $user->socid)) {
|
||||||
$socid = $user->socid;
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = GETPOST("error");
|
$error = GETPOST("error");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user