Page MenuHomePhabricator
Authored By
stwalkerster
May 27 2017, 1:09 AM
Size
900 B
Referenced Files
None
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();

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18911
Default Alt Text
(900 B)

Event Timeline