Skip to content

Commit

Permalink
Scope products for environment by readable providers
Browse files Browse the repository at this point in the history
  • Loading branch information
iNecas committed Aug 31, 2011
1 parent 9f910d8 commit f0fd17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/controllers/api/environments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def destroy
end

def repositories
render :json => @environment.products.collect { |p| p.repos(@environment) }.flatten
render :json => @environment.products.readable.collect { |p| p.repos(@environment) }.flatten
end

def find_environment
Expand Down

0 comments on commit f0fd17d

Please sign in to comment.