Skip to content

Commit 630ef03

Browse files
committed
require admin to rebuild the index
1 parent 6d89129 commit 630ef03

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chef-server-api/app/controllers/search.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ChefServerApi::Search < ChefServerApi::Application
2323
provides :json
2424

2525
before :authenticate_every
26+
before :is_admin, :only => [:reindex]
2627

2728
def index
2829
indexes = valid_indexes

0 commit comments

Comments
 (0)