1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +01:00

Remove unusual explicit calls to policy capability descriptions from Diviner

Summary: Fixes T12015. This is weird and probably got copy/pasted from something else that was also being weird, since the methods were empty and I previously removed them.

Test Plan: Edited a book in Diviner.

Reviewers: chad, avivey

Reviewed By: avivey

Maniphest Tasks: T12015

Differential Revision: https://secure.phabricator.com/D17056
This commit is contained in:
epriestley 2016-12-14 11:01:58 -08:00
parent 102ea3cfa4
commit ae0e97a499

View file

@ -92,15 +92,13 @@ final class DivinerBookEditController extends DivinerController {
->setName('viewPolicy')
->setPolicyObject($book)
->setCapability($view_capability)
->setPolicies($policies)
->setCaption($book->describeAutomaticCapability($view_capability)))
->setPolicies($policies))
->appendChild(
id(new AphrontFormPolicyControl())
->setName('editPolicy')
->setPolicyObject($book)
->setCapability($edit_capability)
->setPolicies($policies)
->setCaption($book->describeAutomaticCapability($edit_capability)))
->setPolicies($policies))
->appendChild(
id(new AphrontFormSubmitControl())
->setValue(pht('Save'))