platforms_for_build return hidden platforms

(use a availables_main_platforms method)
This commit is contained in:
Alexander Machehin 2014-09-10 17:25:57 +06:00
parent 8c4e16d22d
commit d268bb7c99
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Api::V1::PlatformsController < Api::V1::BaseController
end
def platforms_for_build
@platforms = Platform.main.opened.paginate(paginate_params)
@platforms = Platform.availables_main_platforms(current_user, current_ability).paginate(paginate_params)
respond_to do |format|
format.json { render :index }
end