Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14768962
D14304.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
D14304.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectBoardViewController.php b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
--- a/src/applications/project/controller/PhabricatorProjectBoardViewController.php
+++ b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
@@ -67,6 +67,9 @@
// TODO: Expand the checks here if we add the ability
// to hide the Backlog column
if (!$columns) {
+ if (!$viewer->isLoggedIn()) {
+ return $this->noAccessDialog($project);
+ }
switch ($request->getStr('initialize-type')) {
case 'backlog-only':
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
@@ -713,6 +716,20 @@
->setDialog($dialog);
}
+ private function noAccessDialog(PhabricatorProject $project) {
+
+ $instructions = pht('This workboard has not been setup yet.');
+
+ $dialog = id(new AphrontDialogView())
+ ->setUser($this->getRequest()->getUser())
+ ->setTitle(pht('No Workboard'))
+ ->addCancelButton($this->getApplicationURI('view/'.$project->getID().'/'))
+ ->appendParagraph($instructions);
+
+ return id(new AphrontDialogResponse())
+ ->setDialog($dialog);
+ }
+
/**
* Add current state parameters (like order and the visibility of hidden
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:45 PM (20 h, 32 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7042980
Default Alt Text
D14304.diff (1 KB)
Attached To
Mode
D14304: Don't allow logged out users to initialize a Workboard
Attached
Detach File
Event Timeline
Log In to Comment