in dev, allow dev FE
[akkoma] / lib / pleroma / web / plugs / ensure_public_or_authenticated_plug.ex
index 3bebdac6db6e983cfeeafe4a018f3db035fcca07..8a8532f4156f31d33f8e72a282c7ea4bb8305315 100644 (file)
@@ -1,8 +1,13 @@
 # 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.EnsurePublicOrAuthenticatedPlug do
+  @moduledoc """
+  Ensures instance publicity or _user_ authentication
+  (app-bound user-unbound tokens are accepted only if the instance is public).
+  """
+
   import Pleroma.Web.TranslationHelpers
   import Plug.Conn