diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 0487691c4d..9cfd660138 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -731,6 +731,7 @@ phutil_register_library_map(array( 'PhabricatorCalendarViewStatusController' => 'applications/calendar/controller/PhabricatorCalendarViewStatusController.php', 'PhabricatorCampfireProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php', 'PhabricatorChangesetResponse' => 'infrastructure/diff/PhabricatorChangesetResponse.php', + 'PhabricatorChatLogChannel' => 'applications/chatlog/storage/PhabricatorChatLogChannel.php', 'PhabricatorChatLogChannelListController' => 'applications/chatlog/controller/PhabricatorChatLogChannelListController.php', 'PhabricatorChatLogChannelLogController' => 'applications/chatlog/controller/PhabricatorChatLogChannelLogController.php', 'PhabricatorChatLogConstants' => 'applications/chatlog/constants/PhabricatorChatLogConstants.php', @@ -2183,6 +2184,11 @@ phutil_register_library_map(array( 'PhabricatorCalendarViewStatusController' => 'PhabricatorCalendarController', 'PhabricatorCampfireProtocolAdapter' => 'PhabricatorBaseProtocolAdapter', 'PhabricatorChangesetResponse' => 'AphrontProxyResponse', + 'PhabricatorChatLogChannel' => + array( + 0 => 'PhabricatorChatLogDAO', + 1 => 'PhabricatorPolicyInterface', + ), 'PhabricatorChatLogChannelListController' => 'PhabricatorChatLogController', 'PhabricatorChatLogChannelLogController' => 'PhabricatorChatLogController', 'PhabricatorChatLogController' => 'PhabricatorController', diff --git a/src/applications/chatlog/storage/PhabricatorChatLogChannel.php b/src/applications/chatlog/storage/PhabricatorChatLogChannel.php new file mode 100644 index 0000000000..33c6ab09fa --- /dev/null +++ b/src/applications/chatlog/storage/PhabricatorChatLogChannel.php @@ -0,0 +1,36 @@ +viewPolicy; + break; + case PhabricatorPolicyCapability::CAN_EDIT: + return $this->editPolicy; + break; + } + } + + public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { + return false; + } + +} +