Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F20631
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
stwalkerster
May 27 2017, 1:09 AM
2017-05-27 01:09:40 (UTC+0)
Size
900 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18911
Default Alt Text
(900 B)
Attached To
Mode
P134 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment