Skip to content

Commit a7ffe58

Browse files
committed
chore: adjust permissions for aggregate
1 parent 4db817c commit a7ffe58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/modules/meta_intelligence/controllers/builds_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Controllers
2020
# POST /api/v1/meta/builds/aggregate
2121
class BuildsController < Api::V1::BaseController
2222
before_action :set_build, only: %i[show update destroy]
23-
before_action :require_admin!, only: %i[aggregate]
23+
before_action -> { require_role!('owner', 'admin', 'coach') }, only: %i[aggregate]
2424

2525
# GET /api/v1/meta/builds
2626
#
@@ -93,7 +93,7 @@ def destroy
9393
# POST /api/v1/meta/builds/aggregate
9494
#
9595
# Enqueues UpdateMetaStatsJob for the current organization.
96-
# Only owners and admins can trigger this.
96+
# Accessible by owners, admins, and coaches.
9797
#
9898
# @param [String] scope 'org' (default) or 'org+scouting'
9999
# @param [String] patch specific patch to aggregate (optional)

0 commit comments

Comments
 (0)