Page MenuHomePhabricator

D14304.diff
No OneTemporary

D14304.diff

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

Mime Type
text/plain
Expires
Wed, May 8, 8:46 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6264660
Default Alt Text
D14304.diff (1 KB)

Event Timeline