Refactor checking permissions when managing events and tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -153,6 +153,7 @@ defmodule Mobilizon.Events do
|
||||
def get_event_by_url!(url) do
|
||||
url
|
||||
|> event_by_url_query()
|
||||
|> preload_for_event()
|
||||
|> Repo.one!()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user