Merge branch 'bugfix/1629-fav-race-condition' into 'develop'
[akkoma] / lib / pleroma / plugs / auth_expected_plug.ex
index 9e4a4bec850f6535dec3f425e5da7394f0274270..f79597dc35dd22706f94b6db5d98e299ba4be770 100644 (file)
@@ -10,4 +10,8 @@ defmodule Pleroma.Plugs.AuthExpectedPlug do
   def call(conn, _) do
     put_private(conn, :auth_expected, true)
   end
+
+  def auth_expected?(conn) do
+    conn.private[:auth_expected]
+  end
 end