mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +01:00
3de4e91dac
Summary: another little piece here that basically just adds some permissions to source editing. serving it up before I do anything too complicated to make sure it seems kosher. in terms of what comes next this form needs to be dynamic based on source type so there'll be some fun there. That said, I plan to implement a more simple "phabricator form" only version to start here and flesh out a few other things like queues with that. Test Plan: set permission to no one for source edit and got a nice error page. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7535
20 lines
387 B
PHP
20 lines
387 B
PHP
<?php
|
|
|
|
final class NuanceCapabilitySourceDefaultView
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'nuance.source.default.view';
|
|
|
|
public function getCapabilityKey() {
|
|
return self::CAPABILITY;
|
|
}
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Default Source View Policy');
|
|
}
|
|
|
|
public function shouldAllowPublicPolicySetting() {
|
|
return true;
|
|
}
|
|
|
|
}
|