mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 03:29:11 +01:00
Summary: This has been replaced by `PolicyCodex` after D16830. Also: - Rebuild Celerity map to fix grumpy unit test. - Fix one issue on the policy exception workflow to accommodate the new code. Test Plan: - `arc unit --everything` - Viewed policy explanations. - Viewed policy errors. Reviewers: chad Reviewed By: chad Subscribers: hach-que, PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D16831
55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorConduitMethodCallLog
|
|
extends PhabricatorConduitDAO
|
|
implements PhabricatorPolicyInterface {
|
|
|
|
protected $callerPHID;
|
|
protected $connectionID;
|
|
protected $method;
|
|
protected $error;
|
|
protected $duration;
|
|
|
|
protected function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
'id' => 'auto64',
|
|
'connectionID' => 'id64?',
|
|
'method' => 'text64',
|
|
'error' => 'text255',
|
|
'duration' => 'uint64',
|
|
'callerPHID' => 'phid?',
|
|
),
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
'key_date' => array(
|
|
'columns' => array('dateCreated'),
|
|
),
|
|
'key_method' => array(
|
|
'columns' => array('method'),
|
|
),
|
|
'key_callermethod' => array(
|
|
'columns' => array('callerPHID', 'method'),
|
|
),
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
|
|
/* -( PhabricatorPolicyInterface )----------------------------------------- */
|
|
|
|
|
|
public function getCapabilities() {
|
|
return array(
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
);
|
|
}
|
|
|
|
public function getPolicy($capability) {
|
|
return PhabricatorPolicies::POLICY_USER;
|
|
}
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
return false;
|
|
}
|
|
|
|
}
|