Differential D13123 Diff 31761 src/applications/conduit/settings/PhabricatorConduitTokensSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/settings/PhabricatorConduitTokensSettingsPanel.php
| Show All 14 Lines | public function getPanelName() { | ||||
| return pht('Conduit API Tokens'); | return pht('Conduit API Tokens'); | ||||
| } | } | ||||
| public function getPanelGroup() { | public function getPanelGroup() { | ||||
| return pht('Sessions and Logs'); | return pht('Sessions and Logs'); | ||||
| } | } | ||||
| public function isEnabled() { | public function isEnabled() { | ||||
| if ($this->getUser()->getIsMailingList()) { | |||||
| return false; | |||||
| } | |||||
| return true; | return true; | ||||
| } | } | ||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $user = $this->getUser(); | $user = $this->getUser(); | ||||
| $tokens = id(new PhabricatorConduitTokenQuery()) | $tokens = id(new PhabricatorConduitTokenQuery()) | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||