Show a proper error message on creating/updating an event

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-09 16:07:13 +02:00
parent 9430f1145f
commit 75fc1f125a
3 changed files with 14 additions and 3 deletions

View File

@@ -666,7 +666,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
assert hd(json_response(res, 200)["errors"])["message"] == "Event not found"
end
test "update_event/3 should check the user is an administrator", %{
test "update_event/3 should check the user is the organizer", %{
conn: conn,
actor: _actor,
user: user