Skip to Content Skip to Search

Authentication is optional to check for unprotected pages Require authentication once it is determined the pathname is covered by a protected page

Methods
C

Instance Public methods

create()

# File app/controllers/v2/path_access_verifications_controller.rb, line 7
def create
  return head :ok if unprotected?

  authenticate_jwt! # calls render if failed, don't render again

  if current_member
    if accessible?
      head :ok
    else
      head :forbidden
    end
  end
end