Fix admin api.
This commit is contained in:
parent
d0ec2812bd
commit
1c67277c80
5 changed files with 50 additions and 29 deletions
|
|
@ -5,7 +5,7 @@ defmodule Pleroma.Plugs.UserIsAdminPlugTest do
|
|||
import Pleroma.Factory
|
||||
|
||||
test "accepts a user that is admin", %{conn: conn} do
|
||||
user = insert(:user, info: %{"is_admin" => true})
|
||||
user = insert(:user, info: %{is_admin: true})
|
||||
|
||||
conn =
|
||||
build_conn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue