1
0
Fork 0
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:
Anh Nhan Nguyen 2013-03-16 11:44:01 -04:00 committed by epriestley
parent a161617d8e
commit 3ad33dbc04

View file

@ -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()) {