bonfire-networks / bonfire-app

Bonfire - tend to your digital life in community. Customise and host your own online space and control your experience at the most granular level.
https://bonfirenetworks.org
GNU Affero General Public License v3.0
522 stars 37 forks source link

Bug: promote account fails with error #845

Closed lawik closed 5 months ago

lawik commented 5 months ago

easy, classic @ ca41fc65124e5113202724315c10abed3dc87547

Command: just mix bonfire.user.admin.promote lawik

I have logged the user in and given it that username. For the wrong username I get "User not found".

[error] SQL query: error db=6ms source="bonfire_data_access_control_encircle"
  INSERT INTO "bonfire_data_access_control_encircle" ("circle_id","subject_id","id") VALUES ('0ADM1NSVSERW1THSVPERP0WERS','01HNJ34DJ5ZGDYNEAGRJGCBVAB','01HNJ3AKZQWZEBT8ZSZF3304MW') 
    (bonfire_me 0.1.0) lib/users/users.ex:234: Bonfire.Me.Users.make_admin/1
    (mix 1.15.4) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.15.4) lib/mix/cli.ex:92: Mix.CLI.run_task/2
    /home/lawik/.asdf/installs/elixir/1.15.4-otp-26/bin/mix:2: (file)
    (elixir 1.15.4) src/elixir_compiler.erl:67: :elixir_compiler.dispatch/4

[os_mon] memory supervisor port (memsup): Erlang has closed
mayel commented 5 months ago

First user is automatically an admin, so the error might just be because of that?

lawik commented 5 months ago

oh, okay