Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2689528
D25685.1734735889.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25685.1734735889.diff
View Options
diff --git a/src/applications/people/controller/PhabricatorPeopleController.php b/src/applications/people/controller/PhabricatorPeopleController.php
--- a/src/applications/people/controller/PhabricatorPeopleController.php
+++ b/src/applications/people/controller/PhabricatorPeopleController.php
@@ -11,17 +11,31 @@
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
$name = null;
+ $viewer = $this->getRequest()->getUser();
if ($for_app) {
$name = $this->getRequest()->getURIData('username');
if ($name) {
$nav->setBaseURI(new PhutilURI('/p/'));
$nav->addFilter("{$name}/", $name);
$nav->addFilter("{$name}/calendar/", pht('Calendar'));
+ if ($viewer->getIsAdmin()) {
+ $user = id(new PhabricatorPeopleQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withUsernames(array($name))
+ ->needUserSettings(false)
+ ->executeOne();
+ $user_id = $user->getID();
+ if ($user_id) {
+ $user_manage_uri = id(new PhutilURI(
+ $this->getApplicationURI('manage/'.$user_id.'/')));
+ $nav->addFilter('manage', pht('Manage %s', $name),
+ $user_manage_uri);
+ }
+ }
}
}
if (!$name) {
- $viewer = $this->getRequest()->getUser();
id(new PhabricatorPeopleSearchEngine())
->setViewer($viewer)
->addNavigationItems($nav->getMenu());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 23:04 (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021292
Default Alt Text
D25685.1734735889.diff (1 KB)
Attached To
Mode
D25685: Allow admins to access "Manage" page from user profile page menu on mobile
Attached
Detach File
Event Timeline
Log In to Comment