diff options
author | Ilja <ilja@ilja.space> | 2022-06-18 08:32:05 +0200 |
---|---|---|
committer | Ilja <ilja@ilja.space> | 2022-06-21 12:10:27 +0200 |
commit | edf0013ff38ae2d7bc84431d1d1384e5fc45bc0e (patch) | |
tree | 410ce2131fe7e050608d07f1a1d2987127220947 /lib | |
parent | bb61cfee8dc27c658215f05cce3ea58fca5b3db3 (diff) | |
download | pleroma-edf0013ff38ae2d7bc84431d1d1384e5fc45bc0e.tar.gz pleroma-edf0013ff38ae2d7bc84431d1d1384e5fc45bc0e.zip |
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')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
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) |