Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15376108
D14159.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
579 B
Referenced Files
None
Subscribers
None
D14159.id.diff
View Options
diff --git a/src/applications/badges/controller/PhabricatorBadgesEditController.php b/src/applications/badges/controller/PhabricatorBadgesEditController.php
--- a/src/applications/badges/controller/PhabricatorBadgesEditController.php
+++ b/src/applications/badges/controller/PhabricatorBadgesEditController.php
@@ -22,6 +22,9 @@
}
$is_new = false;
} else {
+ $this->requireApplicationCapability(
+ PhabricatorBadgesCreateCapability::CAPABILITY);
+
$badge = PhabricatorBadgesBadge::initializeNewBadge($viewer);
$is_new = true;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 1:46 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7640222
Default Alt Text
D14159.id.diff (579 B)
Attached To
Mode
D14159: Check that the viewer can actually create badges before letting them create badges
Attached
Detach File
Event Timeline
Log In to Comment