Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2681037
D25744.1734633229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25744.1734633229.diff
View Options
diff --git a/src/applications/badges/controller/PhabricatorBadgesEditRecipientsController.php b/src/applications/badges/controller/PhabricatorBadgesEditRecipientsController.php
--- a/src/applications/badges/controller/PhabricatorBadgesEditRecipientsController.php
+++ b/src/applications/badges/controller/PhabricatorBadgesEditRecipientsController.php
@@ -49,26 +49,15 @@
->setURI($view_uri);
}
- $can_edit = PhabricatorPolicyFilter::hasCapability(
- $viewer,
- $badge,
- PhabricatorPolicyCapability::CAN_EDIT);
-
- $form_box = null;
- $title = pht('Add Recipient');
- if ($can_edit) {
- $header_name = pht('Edit Recipients');
-
- $form = new AphrontFormView();
- $form
- ->setUser($viewer)
- ->setFullWidth(true)
- ->appendControl(
- id(new AphrontFormTokenizerControl())
- ->setName('phids')
- ->setLabel(pht('Recipients'))
- ->setDatasource(new PhabricatorPeopleDatasource()));
- }
+ $form = new AphrontFormView();
+ $form
+ ->setUser($viewer)
+ ->setFullWidth(true)
+ ->appendControl(
+ id(new AphrontFormTokenizerControl())
+ ->setName('phids')
+ ->setLabel(pht('Recipients'))
+ ->setDatasource(new PhabricatorPeopleDatasource()));
$dialog = id(new AphrontDialogView())
->setUser($viewer)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 18:33 (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015357
Default Alt Text
D25744.1734633229.diff (1 KB)
Attached To
Mode
D25744: Refactor PhabricatorBadgesEditRecipientsController to remove dead code
Attached
Detach File
Event Timeline
Log In to Comment