Event for when a user is added/removed as group owner

There’s no DiscourseEvent for the action, and add_model_callback isn’t working:

  add_model_callback(GroupUser, :after_commit, on: :update) do
    # never called, for some reason

Got the idea that it might work from here. Am I doing something wrong?

Maybe try the on save hook?

1 Like