Skip to content

Commit

Permalink
EZP-28108: Submitting form with ContentObjectID changed sends e-mail …
Browse files Browse the repository at this point in the history
…anyway
  • Loading branch information
glye committed Feb 26, 2018
1 parent 6db0e6b commit efcd2b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kernel/content/collectinformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@
$version = $object->currentVersion();
$contentObjectAttributes = $version->contentObjectAttributes();

$isInformationCollector = false;
foreach ( $contentObjectAttributes as $contentObjectAttribute )
{
if ( $contentObjectAttribute->contentClassAttributeIsInformationCollector() )
{
$isInformationCollector = true;
break;
}
}
if ( !$isInformationCollector )
{
return $Module->handleError( eZError::KERNEL_NOT_AVAILABLE, 'kernel' );
}

$user = eZUser::currentUser();
$isLoggedIn = $user->attribute( 'is_logged_in' );
$allowAnonymous = true;
Expand Down

0 comments on commit efcd2b6

Please sign in to comment.