oauth plug: fix deactivated check
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:47:00 +0000 (18:47 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:47:00 +0000 (18:47 +0000)
lib/pleroma/plugs/oauth_plug.ex

index 0380ce14db4d0dac270686ad5a8d5633f01d3286..630f15eec8e837af098a153bfff666567fd611ee 100644 (file)
@@ -20,7 +20,7 @@ defmodule Pleroma.Plugs.OAuthPlug do
     with token when not is_nil(token) <- token,
          %Token{user_id: user_id} <- Repo.get_by(Token, token: token),
          %User{} = user <- Repo.get(User, user_id),
-         false <- !!user.info["deactivated"] do
+         false <- !!user.info.deactivated do
       conn
       |> assign(:user, user)
     else