1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00
phorge-phorge/src/applications/diffusion/view
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
..
DiffusionBranchListView.php Add indication of hg branch open/closed in branch list 2017-08-21 09:09:16 -07:00
DiffusionBranchTableView.php Make dates/times more concise in Diffusion 2016-03-18 09:11:09 -07:00
DiffusionBrowseTableView.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionCloneURIView.php Correct "Manage Password" link in Quickling in Diffusion 2017-01-08 08:20:23 -08:00
DiffusionCommitListView.php Move actions into Diffusion header 2017-07-10 06:51:40 -07:00
DiffusionEmptyResultView.php When users browse to a submodule path in Diffusion explicitly, don't fatal 2017-12-18 09:18:22 -08:00
DiffusionHistoryListView.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionHistoryTableView.php Use a list view for DiffusionHistory 2017-05-30 17:31:48 -07:00
DiffusionHistoryView.php Use a list view for DiffusionHistory 2017-05-30 17:31:48 -07:00
DiffusionPatternSearchView.php Fix a bad link target in Diffusion content search results 2017-11-22 11:16:14 -08:00
DiffusionPullLogListView.php Change the "can see remote address?" policy to "is administrator?" everywhere 2018-01-30 15:45:23 -08:00
DiffusionPushLogListView.php Change the "can see remote address?" policy to "is administrator?" everywhere 2018-01-30 15:45:23 -08:00
DiffusionReadmeView.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionTagListView.php Don't fatal when viewing tags pointing at commits we haven't imported/parsed yet 2017-07-28 10:43:24 -07:00
DiffusionTagTableView.php Add a DiffusionTagListView 2017-06-13 11:32:18 -07:00
DiffusionView.php Simplify Diffusion Browse Table 2017-07-09 09:43:57 -07:00