Skip to content

Commit

Permalink
Merge pull request #4966 from sul-dlss/enable-public-tags
Browse files Browse the repository at this point in the history
Allow the release_tags API to show the public tags
  • Loading branch information
jcoyne authored May 7, 2024
2 parents 1162a3a + 804e1d1 commit b99ddcc
Show file tree
Hide file tree
Showing 3 changed files with 652 additions and 607 deletions.
2 changes: 1 addition & 1 deletion app/controllers/release_tags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def index
message: 'Only Collection or DROs can have release tags.')
end

render json: ReleaseTagService.item_tags(cocina_object: @cocina_object)
render json: params[:public] ? ReleaseTagService.for_public_metadata(cocina_object: @cocina_object) : ReleaseTagService.item_tags(cocina_object: @cocina_object)
end

def create
Expand Down
Loading

0 comments on commit b99ddcc

Please sign in to comment.