 
   def user_add(group, user, me) when is_binary(group) and is_binary(user) do
     if Enum.member? me.perms, "auth.manage_groups" do
-      EventSourcing.dispatch(:auth, :add_user_to_group, %{group: group, user: user}, me.email)
+      EventSourcing.dispatch(Serverboards.Auth.EventSourcing, :add_user_to_group, %{group: group, user: user}, me.email)
       :ok
     else
       {:error, :not_allowed}


  def perm_remove(group, perm, me) when is_binary(group) and is_binary(perm) do
    if Enum.member? me.perms, "auth.manage_groups" do
      EventSourcing.dispatch(:auth, :remove_perm_from_group, %{group: group, perm: perm}, me.email)
      :ok
    else
      {:error, :not_allowed}


  def perm_add(group, perm, me) when is_binary(group) and is_binary(perm) do
    if Enum.member? me.perms, "auth.manage_groups" do
      EventSourcing.dispatch(Serverboards.Auth.EventSourcing, :add_perm_to_group, %{group: group, perm: perm}, me.email)
      :ok
    else
      {:error, :not_allowed}
