Compare commits
No commits in common. "master" and "ebbe1c2fa0d958e2c1ecde8f49bf9aac1fe41557" have entirely different histories.
master
...
ebbe1c2fa0
|
@ -66,7 +66,7 @@ defmodule Entendu.UserFromAuth do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_access?(recipient, %{emails: emails, username: username}),
|
def can_access?(recipient, %{emails: emails, username: username} = stuff),
|
||||||
do: email_matches?(recipient, emails) || username_matches?(recipient, username)
|
do: email_matches?(recipient, emails) || username_matches?(recipient, username)
|
||||||
|
|
||||||
defp email_matches?(recipient, emails),
|
defp email_matches?(recipient, emails),
|
||||||
|
|
Loading…
Reference in New Issue