mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
2e5ac128b3
Summary: Ref T603. Adds clarifying text which expands on policies and explains exceptions and rules. The goal is to provide an easy way for users to learn about special policy rules, like "task owners can always see a task". This presentation might be a little aggressive. That's probably OK as we introduce policies, but something a little more tempered might be better down the road. Test Plan: See screenshot. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7150
41 lines
974 B
PHP
41 lines
974 B
PHP
<?php
|
|
|
|
final class PhabricatorChatLogEvent
|
|
extends PhabricatorChatLogDAO
|
|
implements PhabricatorPolicyInterface {
|
|
|
|
protected $channelID;
|
|
protected $epoch;
|
|
protected $author;
|
|
protected $type;
|
|
protected $message;
|
|
protected $loggedByPHID;
|
|
|
|
public function getCapabilities() {
|
|
return array(
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
);
|
|
}
|
|
|
|
public function getPolicy($capability) {
|
|
// TODO: This is sort of silly and mostly just so that we can use
|
|
// CursorPagedPolicyAwareQuery; once we implement Channel objects we should
|
|
// just delegate policy to them.
|
|
return PhabricatorPolicies::POLICY_PUBLIC;
|
|
}
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
return false;
|
|
}
|
|
|
|
public function describeAutomaticCapability($capability) {
|
|
return null;
|
|
}
|
|
|
|
public function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_TIMESTAMPS => false,
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
}
|