Spear.disable_user
You're seeing just the function
disable_user
, go back to Spear module for more information.
Specs
disable_user(Spear.Connection.t(), String.t(), Keyword.t()) :: :ok | {:error, any()}
Disables a user's ability to make requests against the EventStoreDB
This can be used in conjunction with Spear.enable_user/3
to temporarily
deny access to a user as an alternative to deleting and creating the user.
Enabling and disabling users does not require the password of the user:
just that requestor to be in the $admins
group.
Options
All options are passed to Spear.request/5
.
Examples
iex> Spear.enable_user(conn, "aladdin")
:ok
iex> Spear.disable_user(conn, "aladdin")
:ok