summaryrefslogtreecommitdiff
path: root/lib/pleroma/user.ex
diff options
context:
space:
mode:
authorIlja <ilja@ilja.space>2022-06-18 08:32:05 +0200
committerIlja <ilja@ilja.space>2022-06-21 12:10:27 +0200
commitedf0013ff38ae2d7bc84431d1d1384e5fc45bc0e (patch)
tree410ce2131fe7e050608d07f1a1d2987127220947 /lib/pleroma/user.ex
parentbb61cfee8dc27c658215f05cce3ea58fca5b3db3 (diff)
User.visible_for/2
According to the tests, this was only used for unconfirmed accounts. So this just needed to be restricted to users with privilege :user_activation
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r--lib/pleroma/user.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index b93ce9c2c..7dfc6ce7b 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -326,7 +326,7 @@ defmodule Pleroma.User do
end
def visible_for(%User{} = user, for_user) do
- if superuser?(for_user) do
+ if privileged?(for_user, :user_activation) do
:visible
else
visible_account_status(user)