mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
32b1ffdf89
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
15 lines
295 B
PHP
15 lines
295 B
PHP
<?php
|
|
|
|
final class ProjectDefaultViewCapability
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'project.default.view';
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Default View Policy');
|
|
}
|
|
|
|
public function shouldAllowPublicPolicySetting() {
|
|
return true;
|
|
}
|
|
}
|