diff --git a/README.md b/README.md index 33407e0..046ef2e 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ end ### Field Authorization -Authorizes Absinthe's object [field](https://hexdocs.pm/absinthe/Absinthe.Schema.Notation.html#field/4) according to the result of the [has_user_access?/3](https://hexdocs.pm/rajska/Rajska.Authorization.html#c:has_user_access?/3) function, which receives the user role, the `source` object that is resolving the field and the object rule. +Authorizes Absinthe's object [field](https://hexdocs.pm/absinthe/Absinthe.Schema.Notation.html#field/4) according to the result of the [has_user_access?/3](https://hexdocs.pm/rajska/Rajska.Authorization.html#c:has_user_access?/3) function, which receives the user role, the `source` object that is resolving the field and the field rule. Usage: diff --git a/lib/middlewares/field_authorization.ex b/lib/middlewares/field_authorization.ex index 8d8724f..2c09d4d 100644 --- a/lib/middlewares/field_authorization.ex +++ b/lib/middlewares/field_authorization.ex @@ -2,7 +2,7 @@ defmodule Rajska.FieldAuthorization do @moduledoc """ Absinthe middleware to ensure field permissions. - Authorizes Absinthe's object [field](https://hexdocs.pm/absinthe/Absinthe.Schema.Notation.html#field/4) according to the result of the `c:Rajska.Authorization.has_user_access?/3` function, which receives the user role, the `source` object that is resolving the field and the object rule. + Authorizes Absinthe's object [field](https://hexdocs.pm/absinthe/Absinthe.Schema.Notation.html#field/4) according to the result of the `c:Rajska.Authorization.has_user_access?/3` function, which receives the user role, the `source` object that is resolving the field and the field rule. ## Usage