Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P134
(An Untitled Masterwork)
Active
Public
Actions
Authored by
stwalkerster
on May 27 2017, 1:09 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F20631:
May 27 2017, 1:09 AM
2017-05-27 01:09:40 (UTC+0)
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 paste.
May 27 2017, 1:09 AM
2017-05-27 01:09:40 (UTC+0)
stwalkerster
created this object with visibility "Public (No Login Required)".
Log In to Comment