mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
c4244aa177
Summary: Depends on D20006. Ref T13222. Currently, the "MFA Is Required" gate doesn't let you do anything else, but you'll need to be able to access "Contact Numbers" if an install provides SMS MFA. Tweak this UI to give users limited access to settings, so they can set up contact numbers and change their language. (This is a little bit fiddly, and I'm doing it early on partly so it can get more testing as these changes move forward.) Test Plan: {F6146136} Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13222 Differential Revision: https://secure.phabricator.com/D20008
32 lines
572 B
PHP
32 lines
572 B
PHP
<?php
|
|
|
|
final class PhabricatorLanguageSettingsPanel
|
|
extends PhabricatorEditEngineSettingsPanel {
|
|
|
|
const PANELKEY = 'language';
|
|
|
|
public function getPanelName() {
|
|
return pht('Language');
|
|
}
|
|
|
|
public function getPanelMenuIcon() {
|
|
return 'fa-globe';
|
|
}
|
|
|
|
public function getPanelGroupKey() {
|
|
return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY;
|
|
}
|
|
|
|
public function isManagementPanel() {
|
|
return true;
|
|
}
|
|
|
|
public function isTemplatePanel() {
|
|
return true;
|
|
}
|
|
|
|
public function isMultiFactorEnrollmentPanel() {
|
|
return true;
|
|
}
|
|
|
|
}
|