Skip to content

Commit

Permalink
[api] allow request list by user too
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 11, 2012
1 parent ab364d3 commit 0a37cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/controllers/webui_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def request_ids

def request_list
# Do not allow a full collection to avoid server load
if params[:project].blank?
if params[:project].blank? && params[:user].blank? && params[:package].blank?
render_error :status => 400, :errorcode => 'require_filter',
:message => "This call requires at least one filter, either by user, project or package or states or types or reviewstates"
:message => "This call requires at least one filter, either by user, project or package"
return
end

Expand Down

0 comments on commit 0a37cd7

Please sign in to comment.