[#114] Made MastodonAPI and TwitterAPI user show actions return 404 for auth-inactive users
unless requested by admin or moderator.
This commit is contained in:
parent
a532ad5d72
commit
279096228c
4 changed files with 18 additions and 5 deletions
|
|
@ -37,6 +37,8 @@ defmodule Pleroma.User.Info do
|
|||
# subject _> Where is this used?
|
||||
end
|
||||
|
||||
def superuser?(info), do: info.is_admin || info.is_moderator
|
||||
|
||||
def set_activation_status(info, deactivated) do
|
||||
params = %{deactivated: deactivated}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue