Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2670980
D25843.1734096382.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
D25843.1734096382.diff
View Options
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php b/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
@@ -4,7 +4,10 @@
extends DiffusionRepositoryManageController {
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) {
return $response;
}
diff --git a/src/applications/diffusion/management/DiffusionRepositoryBasicsManagementPanel.php b/src/applications/diffusion/management/DiffusionRepositoryBasicsManagementPanel.php
--- a/src/applications/diffusion/management/DiffusionRepositoryBasicsManagementPanel.php
+++ b/src/applications/diffusion/management/DiffusionRepositoryBasicsManagementPanel.php
@@ -154,7 +154,8 @@
->setName(pht('Delete Repository'))
->setHref($delete_uri)
->setIcon('fa-times')
- ->setWorkflow(true));
+ ->setWorkflow(true)
+ ->setDisabled(!$can_edit));
return $this->newCurtainView()
->setActionList($action_list);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 13, 13:26 (19 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1008235
Default Alt Text
D25843.1734096382.diff (1 KB)
Attached To
Mode
D25843: Delete Repository button: disable if not admin, but show popup to all
Attached
Detach File
Event Timeline
Log In to Comment