API: admin users can sudo commands as other users
-Specifying a header of SUDO or adding a :sudo with either user id, or username of the user will set the current_user to be that user if your identifying private_token/PRIVATE_TOKEN is an administrator token
Showing
spec/requests/api/api_helpers_spec.rb
0 → 100644
Please
register
or
sign in
to comment