Commit 211350ca authored by Sebastian Castro's avatar Sebastian Castro

Fix editing with hash prevent validate element

parent c326be8e
......@@ -143,7 +143,7 @@ class ElementFormController extends GoGoController
|| (!$editMode && in_array('ROLE_DIRECTMODERATION_ADD', $userRoles))
|| ($editMode && in_array('ROLE_DIRECTMODERATION_EDIT_OWN_CONTRIB', $userRoles) && $element->hasValidContributionMadeBy($userEmail))
|| $isUserOwnerOfValidElement
|| $isEditingWithHash;
|| ($isEditingWithHash && $element->getStatus() > ElementStatus::PendingAdd);
$editingOwnPendingContrib = $element->isPending() && $element->getCurrContribution() && $element->getCurrContribution()->getUserEmail() == $userEmail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment