Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13978211
D14310.id34542.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
864 B
Referenced Files
None
Subscribers
None
D14310.id34542.diff
View Options
diff --git a/src/applications/meta/controller/PhabricatorApplicationEditController.php b/src/applications/meta/controller/PhabricatorApplicationEditController.php
--- a/src/applications/meta/controller/PhabricatorApplicationEditController.php
+++ b/src/applications/meta/controller/PhabricatorApplicationEditController.php
@@ -145,7 +145,12 @@
->setViewer($user)
->setObject($template_object)
->execute();
- $control->setPolicies($template_policies);
+
+ // NOTE: We want to expose both any object template policies
+ // (like "Subscribers") and any custom policy.
+ $all_policies = $template_policies + $policies;
+
+ $control->setPolicies($all_policies);
$control->setTemplateObject($template_object);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 19 2024, 10:08 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734071
Default Alt Text
D14310.id34542.diff (864 B)
Attached To
Mode
D14310: Fix control state for custom application policies with template types
Attached
Detach File
Event Timeline
Log In to Comment