Add default View, Edit, and Join Policies to Projects
Summary: Fixes T6567, lets admins set a default policy for new Projects. Test Plan: Changed the default Policy, created a new Project. Project had correct defaults. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6567 Differential Revision: https://secure.phabricator.com/D10890
This commit is contained in:
@@ -98,6 +98,18 @@ final class PhabricatorProjectApplication extends PhabricatorApplication {
|
||||
ProjectCanLockProjectsCapability::CAPABILITY => array(
|
||||
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
||||
),
|
||||
ProjectDefaultViewCapability::CAPABILITY => array(
|
||||
'caption' => pht(
|
||||
'Default view policy for newly created projects.'),
|
||||
),
|
||||
ProjectDefaultEditCapability::CAPABILITY => array(
|
||||
'caption' => pht(
|
||||
'Default edit policy for newly created projects.'),
|
||||
),
|
||||
ProjectDefaultJoinCapability::CAPABILITY => array(
|
||||
'caption' => pht(
|
||||
'Default join policy for newly created projects.'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user