platforms_for_build return hidden platforms
(use a availables_main_platforms method)
This commit is contained in:
parent
8c4e16d22d
commit
d268bb7c99
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue