Skip to content

Commit

Permalink
Merge branch 'issue3199' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Aug 15, 2022
2 parents 387e7e6 + bbf34d0 commit dbbf88d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/guidance_groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def admin_new
def admin_create
# Ensure that the user can only create GuidanceGroups for their Org
args = guidance_group_params.to_h.merge({ org_id: current_user.org.id })
@guidance_groups = GuidanceGroup.where(org_id: current_user.org.id)
@guidance_group = GuidanceGroup.new(args)
authorize @guidance_group

Expand All @@ -46,6 +47,7 @@ def admin_edit
# PUT /org/admin/guidancegroup/:id/admin_update
# rubocop:disable Metrics/AbcSize
def admin_update
@guidance_groups = GuidanceGroup.where(org_id: current_user.org.id)
@guidance_group = GuidanceGroup.find(params[:id])
authorize @guidance_group

Expand Down

0 comments on commit dbbf88d

Please sign in to comment.