Skip to content

Commit

Permalink
Fixes #36449 - Make /api/v2 public
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka authored and stejskalleos committed Jun 8, 2023
1 parent 29e1c27 commit b6878a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/api/v2/home_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Api
module V2
class HomeController < V2::BaseController
before_action :require_admin, :only => [:index]
layout false

api :GET, "/", N_("Show available API links")
Expand Down
2 changes: 1 addition & 1 deletion app/registries/foreman/access_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:notification_recipients => [:index, :update, :destroy, :update_group_as_read, :destroy_group],
:"api/v2/table_preferences" => [:show, :create, :update, :destroy, :index],
}, :public => true
map.permission :api_status, { :"api/v2/home" => [:status]}, :public => true
map.permission :api_status, { :"api/v2/home" => [:status, :index]}, :public => true
map.permission :about_index, { :about => [:index] }, :public => true
map.permission :user_menu, { :user_menus => [:menu] }, :public => true
map.permission :links, { :links => [:show] }, :public => true
Expand Down

0 comments on commit b6878a0

Please sign in to comment.