@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add "View Activity Log" menu item to "Manage User" page

Summary:
Add a "View Activity Log" item to the menu on the "Manage User" page which links to not very discoverable http://phorge.localhost/people/logs/?users=SomeUserName#R which lists login attempts, IPs, etc. of that user account.
Make it only available for Phorge admins, as `PhabricatorPeopleLogSearchEngine` also has several `getIsAdmin()` checks.

Closes T16214

Test Plan: As an admin and as a non-admin, go to some user profile like http://phorge.localhost/p/user/, select "Manage User' on the left, and select the new "View Activity Log" item on the right.

Reviewers: O1 Blessed Committers, valerio.bozzolan, mainframe98

Reviewed By: O1 Blessed Committers, valerio.bozzolan, mainframe98

Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T16214

Differential Revision: https://we.phorge.it/D26262

+9
+9
src/applications/people/controller/PhabricatorPeopleProfileManageController.php
··· 187 187 188 188 $curtain->addAction( 189 189 id(new PhabricatorActionView()) 190 + ->setIcon('fa-list-alt') 191 + ->setName(pht('View Activity Log')) 192 + ->setDisabled(!$is_admin) 193 + ->setHref( 194 + $this->getApplicationURI('logs/?users='. 195 + $user->getUsername().'#R'))); 196 + 197 + $curtain->addAction( 198 + id(new PhabricatorActionView()) 190 199 ->setIcon($disable_icon) 191 200 ->setName($disable_name) 192 201 ->setDisabled(!$can_disable)