Page MenuHomePhabricator
Paste P134

(An Untitled Masterwork)
ActivePublic

Authored by stwalkerster on May 27 2017, 1:09 AM.
Tags
None
Referenced Files
F20631:
May 27 2017, 1:09 AM
Subscribers
None
diff --git a/zoompage.php b/zoompage.php
index 40a3ec0..d368221 100644
--- a/zoompage.php
+++ b/zoompage.php
@@ -57,7 +57,7 @@ function zoomPage($id, $urlhash)
OR forwardedip LIKE :trustedProxy
)
AND reserved = :reserved
- AND emailconfirm = 'Confirmed'
+ AND (emailconfirm = 'Confirmed' or :configemailconfirmed = 0)
AND status != 'Closed';
SQL
);
@@ -66,7 +66,8 @@ SQL
$viewableDataStatement->bindValue(":reserved", User::getCurrent()->getId());
$viewableDataStatement->bindValue(":trustedIp", $request->getTrustedIp());
$viewableDataStatement->bindValue(":trustedProxy", '%' . $request->getTrustedIp() . '%');
-
+ $viewableDataStatement->bindValue(":configemailconfirmed", (int)$enableEmailConfirm);
+
$viewableDataStatement->execute();
$viewableData = $viewableDataStatement->fetchColumn();

Event Timeline

stwalkerster created this object with visibility "Public (No Login Required)".