mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Profile Pictures can only be edited for System Agents
Summary: I feel pretty disturbed by having the thought of admins, super-beings among all users, being able to edit my profile picture. So I took away that capability of theirs. Test Plan: Tried to edit a sys agent's profile pic, and somebody else's. Reviewers: epriestley, chad, btrahan, Afaque_Hussain Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5358
This commit is contained in:
parent
a161617d8e
commit
3ad33dbc04
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ final class PhabricatorPeopleEditController
|
||||||
pht('View Profile'), '/p/'.$user->getUsername().'/');
|
pht('View Profile'), '/p/'.$user->getUsername().'/');
|
||||||
$nav->addLabel(pht('Special'));
|
$nav->addLabel(pht('Special'));
|
||||||
$nav->addFilter('rename', pht('Change Username'));
|
$nav->addFilter('rename', pht('Change Username'));
|
||||||
|
if ($user->getIsSystemAgent()) {
|
||||||
$nav->addFilter('picture', pht('Set Account Picture'));
|
$nav->addFilter('picture', pht('Set Account Picture'));
|
||||||
|
}
|
||||||
$nav->addFilter('delete', pht('Delete User'));
|
$nav->addFilter('delete', pht('Delete User'));
|
||||||
|
|
||||||
if (!$user->getID()) {
|
if (!$user->getID()) {
|
||||||
|
|
Loading…
Reference in a new issue