Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expands tests for various users #1049

Merged
merged 12 commits into from
Sep 5, 2024
Prev Previous commit
Next Next commit
Switch from netid to uid
  • Loading branch information
K8Sewell committed Sep 5, 2024
commit 1e8f92f1dd510868ea5f2c4d06b3c67d3bd93513
2 changes: 1 addition & 1 deletion app/helpers/access_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def retrieve_admin_fulltext_credentials(document)
return nil if current_user.nil?
# #{ENV['MANAGEMENT_HOST']}
# for local debugging - http://yul-dc-management-1:3001/management or http://yul-dc_management_1:3001/management
url = URI.parse("#{ENV['MANAGEMENT_HOST']}/api/permission_sets/#{document}/#{current_user.netid}")
url = URI.parse("#{ENV['MANAGEMENT_HOST']}/api/permission_sets/#{document}/#{current_user.uid}")
response = Net::HTTP.get_response(url, { 'Authorization' => "Bearer #{ENV['OWP_AUTH_TOKEN']}" })
JSON.parse(response.body)
end
Expand Down