Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15438381
D17011.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17011.diff
View Options
diff --git a/src/view/page/menu/PhabricatorMainMenuView.php b/src/view/page/menu/PhabricatorMainMenuView.php
--- a/src/view/page/menu/PhabricatorMainMenuView.php
+++ b/src/view/page/menu/PhabricatorMainMenuView.php
@@ -317,19 +317,26 @@
$logo_uri = $cache->getKey($cache_key_logo);
if (!$logo_uri) {
- $file = id(new PhabricatorFileQuery())
+ // NOTE: If the file policy has been changed to be restrictive, we'll
+ // miss here and just show the default logo. The cache will fill later
+ // when someone who can see the file loads the page. This might be a
+ // little spooky, see T11982.
+ $files = id(new PhabricatorFileQuery())
->setViewer($this->getViewer())
->withPHIDs(array($custom_header))
- ->executeOne();
+ ->execute();
+ $file = head($files);
if ($file) {
$logo_uri = $file->getViewURI();
$cache->setKey($cache_key_logo, $logo_uri);
}
}
- $logo_style[] = 'background-size: 40px 40px;';
- $logo_style[] = 'background-position: 0 0;';
- $logo_style[] = 'background-image: url('.$logo_uri.')';
+ if ($logo_uri) {
+ $logo_style[] = 'background-size: 40px 40px;';
+ $logo_style[] = 'background-position: 0 0;';
+ $logo_style[] = 'background-image: url('.$logo_uri.')';
+ }
}
$logo_node = phutil_tag(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 12:27 AM (4 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223539
Default Alt Text
D17011.diff (1 KB)
Attached To
Mode
D17011: When a custom logo is configured but has a restrictive visibility policy, fall back to the default logo
Attached
Detach File
Event Timeline
Log In to Comment