mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-08 04:48:28 +01:00
Summary: Ref T8116. This adds a control for creating publishers (default: administrators) and default publisher/package edit controls. I've left the edit defaults at "no one" for now to force you to select a policy. This might be something to look at later. Test Plan: Created publishers, packages. Tried to create publishers with "can create" policy set restrictively. Reviewers: chad Reviewed By: chad Maniphest Tasks: T8116 Differential Revision: https://secure.phabricator.com/D16319
12 lines
257 B
PHP
12 lines
257 B
PHP
<?php
|
|
|
|
final class PhabricatorPackagesPackageDefaultEditCapability
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'packages.package.default.edit';
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Default Package Edit Policy');
|
|
}
|
|
|
|
}
|