1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 19:52:44 +01:00
phorge-phorge/src/applications/diffusion/query
epriestley 8a2863e3f7 Change the "can see remote address?" policy to "is administrator?" everywhere
Summary:
Depends on D18970. Ref T13049. Currently, the policy for viewing remote addresses is:

  - In activity logs: administrators.
  - In push and pull logs: users who can edit the corresponding repository.

This sort of makes sense, but is also sort of weird. Particularly, I think it's kind of hard to understand and predict, and hard to guess that this is the behavior we implement. The actual implementation is complex, too.

Instead, just use the rule "administrators can see remote addresses" consistently across all applications. This should generally be more strict than the old rule, because administrators could usually have seen everyone's address in the activity logs anyway. It's also simpler and more expected, and I don't really know of any legit use cases for the "repository editor" rule.

Test Plan: Viewed pull/push/activity logs as non-admin. Saw remote addresses as an admin, and none as a non-admin.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13049

Differential Revision: https://secure.phabricator.com/D18971
2018-01-30 15:45:23 -08:00
..
blame Use a path digest when building blame cache keys 2016-01-06 19:12:57 -08:00
filecontent Return Diffusion diffs through Files, not directly over Conduit 2016-08-27 09:11:03 -07:00
lowlevel Improve "refengine" performance for testing large numbers of Mercurial branches 2017-10-20 11:09:14 -07:00
pathchange Extend from Phobject 2015-06-15 18:02:27 +10:00
pathid Fix a few more undeclared properties 2015-06-15 19:39:04 +10:00
rawdiff Filter and reject "--config" and "--debugger" flags to Mercurial in any position 2017-11-10 08:42:07 -08:00
DiffusionCachedResolveRefsQuery.php Fix spelling 2017-10-09 10:48:04 -07:00
DiffusionCommitHintQuery.php When commits have a "rewritten" hint, try to show that in handles in other applications 2016-08-24 09:35:19 -07:00
DiffusionCommitQuery.php Rewrite CommitQuery to use UNION for performance 2017-10-23 10:32:24 -07:00
DiffusionCommitRequiredActionResultBucket.php Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
DiffusionCommitResultBucket.php Provide bucketing for commits in Audit 2017-01-12 12:04:05 -08:00
DiffusionDiffInlineCommentQuery.php Extend TransactionCommentQuery for Diffusion 2015-03-09 14:11:22 -07:00
DiffusionFileFutureQuery.php Fix some issues with Diffusion file data limits 2018-01-22 11:52:37 -08:00
DiffusionLintCountQuery.php Use PhutilInvalidStateException 2015-05-14 07:53:52 +10:00
DiffusionPathQuery.php Extend from Phobject 2015-06-15 18:02:27 +10:00
DiffusionPullLogSearchEngine.php Change the "can see remote address?" policy to "is administrator?" everywhere 2018-01-30 15:45:23 -08:00
DiffusionQuery.php Use futures to improve clustered repository main page performance 2016-12-08 07:26:32 -08:00
DiffusionRenameHistoryQuery.php Extend from Phobject 2015-06-15 18:02:27 +10:00
DiffusionResolveUserQuery.php Provide a standalone query for resolution of commit author/committer into Phabricator users 2013-12-19 11:05:17 -08:00
DiffusionSymbolQuery.php Only link symbols if there might be any 2015-05-21 08:25:35 -07:00