Skip to content

Commit

Permalink
Merge pull request #39 from LeoLeiteSC/change_the_return_parameter_fo…
Browse files Browse the repository at this point in the history
…r_the_unauthorized_message

Change the parameter to be returned in the 'unauthorized_message' fun…
  • Loading branch information
gabrielpra1 authored Jun 8, 2022
2 parents 97cfbf6 + 1de3937 commit 08b4add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authorization.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Rajska.Authorization do

@callback has_user_access?(current_user, scoped_struct, rule) :: boolean()

@callback unauthorized_message(resolution :: Resolution.t()) :: String.t()
@callback unauthorized_message(resolution :: Resolution.t()) :: String.t() | map() | list()

@callback unauthorized_query_scope_message(resolution :: Resolution.t(), atom()) :: String.t()

Expand Down

0 comments on commit 08b4add

Please sign in to comment.