Page MenuHomePhorge

D25744.1734633229.diff
No OneTemporary

D25744.1734633229.diff

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

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)

Event Timeline