Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14050729
D12014.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
D12014.diff
View Options
diff --git a/src/applications/auth/controller/config/PhabricatorAuthListController.php b/src/applications/auth/controller/config/PhabricatorAuthListController.php
--- a/src/applications/auth/controller/config/PhabricatorAuthListController.php
+++ b/src/applications/auth/controller/config/PhabricatorAuthListController.php
@@ -12,6 +12,8 @@
->execute();
$list = new PHUIObjectItemListView();
+ $can_manage = $this->hasApplicationCapability(
+ AuthManageProvidersCapability::CAPABILITY);
foreach ($configs as $config) {
$item = new PHUIObjectItemView();
@@ -47,10 +49,10 @@
if ($config->getShouldAllowRegistration()) {
$item->addAttribute(pht('Allows Registration'));
+ } else {
+ $item->addAttribute(pht('Does Not Allow Registration'));
}
- $can_manage = $this->hasApplicationCapability(
- AuthManageProvidersCapability::CAPABILITY);
if ($config->getIsEnabled()) {
$item->setState(PHUIObjectItemView::STATE_SUCCESS);
$item->addAction(
@@ -152,6 +154,7 @@
->setColor(PHUIButtonView::SIMPLE)
->setHref($this->getApplicationURI('config/new/'))
->setIcon($image)
+ ->setDisabled(!$can_manage)
->setText(pht('Add Provider'));
$header = id(new PHUIHeaderView())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 8:23 PM (4 d, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717267
Default Alt Text
D12014.diff (1 KB)
Attached To
Mode
D12014: Fix a few minor bugs in Auth Providers
Attached
Detach File
Event Timeline
Log In to Comment