Fix MRF policies to also work with Update
[akkoma] / lib / pleroma / web / plugs / user_fetcher_plug.ex
index 4039600daff9ecae0d135f2ff798ef62441956ea..707df9bfd842727b87d4dcd02c7df60e57a229f3 100644 (file)
@@ -1,8 +1,14 @@
 # Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
 defmodule Pleroma.Web.Plugs.UserFetcherPlug do
+  @moduledoc """
+  Assigns `:auth_user` basing on `:auth_credentials`.
+
+  NOTE: no checks are performed at this step, auth_credentials/username could be easily faked.
+  """
+
   alias Pleroma.User
   import Plug.Conn