Refactoring of Events context

This commit is contained in:
miffigriffi
2019-09-16 02:07:44 +02:00
parent 6372599493
commit ac77a7d28a
18 changed files with 910 additions and 1158 deletions

View File

@@ -45,6 +45,7 @@ defmodule Mobilizon.Actors do
:creator
])
@public_visibility [:public, :unlisted]
@administrator_roles [:creator, :administrator]
@doc false
@@ -836,7 +837,7 @@ defmodule Mobilizon.Actors do
from(
a in Actor,
where: a.type == ^:Group,
where: a.visibility in ^[:public, :unlisted]
where: a.visibility in ^@public_visibility
)
end