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:
Laurent Destailleur 2023-03-27 08:30:41 +02:00 committed by GitHub
commit 520280479c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");