Differential D25843 Diff 2553 src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
<?php | <?php | ||||
final class DiffusionRepositoryEditDeleteController | final class DiffusionRepositoryEditDeleteController | ||||
extends DiffusionRepositoryManageController { | extends DiffusionRepositoryManageController { | ||||
public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
$response = $this->loadDiffusionContextForEdit(); | // This is just an information box, telling admins to use CLI for destroy. | ||||
// To increase shared knowledge about how Phorge works, we can safely show | |||||
// it to those who see the repository, not just those who can edit it. | |||||
$response = $this->loadDiffusionContext(); | |||||
if ($response) { | if ($response) { | ||||
return $response; | return $response; | ||||
} | } | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
Show All 33 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0