mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-17 22:47:59 +01:00
6 lines
200 B
Elixir
6 lines
200 B
Elixir
defmodule PhilomenaWeb.SearchView do
|
|
use PhilomenaWeb, :view
|
|
|
|
def scope(conn), do: Philomena.ImageScope.scope(conn)
|
|
def hides_images?(conn), do: can?(conn, :hide, %Philomena.Images.Image{})
|
|
end
|