Skip to content

Commit

Permalink
fix(tests/mentions): resolve issue with mentions tests failing after …
Browse files Browse the repository at this point in the history
…merging boka branch
  • Loading branch information
akinsey committed Oct 24, 2023
1 parent b3547ef commit 90006e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epochtalk_server/models/mention.ex
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ defmodule EpochtalkServer.Models.Mention do
"""
@spec username_to_user_id(user :: map(), post_attrs :: map()) ::
updated_post_attrs :: map()
def username_to_user_id(user, post_attrs) do
def username_to_user_id(%{id: _id, roles: _roles} = user, post_attrs) do
with :ok <- ACL.allow!(user, "mentions.create") do
body = post_attrs["body"]

Expand Down

0 comments on commit 90006e6

Please sign in to comment.