summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-07-27 13:12:35 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-07-27 13:12:35 +0000
commited81ee9ba2b5a0b68996ccb238bfa4c69a6df062 (patch)
tree831e186cd5ed4072a0883c4eac563cbcd9c70f23 /app/policies
parent636ea40e182fca92e89facbcb52445fcefef9506 (diff)
downloadgitlab-ce-ed81ee9ba2b5a0b68996ccb238bfa4c69a6df062.tar.gz
Revert "Merge branch '41416-making-instance-wide-data-tools-more-accessible' into 'master'"
This reverts merge request !20679
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/global_policy.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb
index 16c58730878..6e3827736b2 100644
--- a/app/policies/global_policy.rb
+++ b/app/policies/global_policy.rb
@@ -19,11 +19,6 @@ class GlobalPolicy < BasePolicy
@user&.required_terms_not_accepted?
end
- condition(:private_instance_statistics, score: 0) { Gitlab::CurrentSettings.instance_statistics_visibility_private? }
-
- rule { admin | (~private_instance_statistics & ~anonymous) }
- .enable :read_instance_statistics
-
rule { anonymous }.policy do
prevent :log_in
prevent :receive_notifications