fix(types): resolve unknown type references in member and authorization specs
This commit is contained in:
parent
848f0cd013
commit
c0395f16e8
2 changed files with 7 additions and 5 deletions
|
|
@ -113,8 +113,7 @@ defmodule MvWeb.Authorization do
|
|||
iex> can_access_page?(mitglied, "/members")
|
||||
false
|
||||
"""
|
||||
@spec can_access_page?(map() | nil, String.t() | Phoenix.VerifiedRoutes.unverified_path()) ::
|
||||
boolean()
|
||||
@spec can_access_page?(map() | nil, String.t()) :: boolean()
|
||||
def can_access_page?(nil, _page_path), do: false
|
||||
|
||||
def can_access_page?(user, page_path) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue