rosa-build/app/policies/user_builds_setting_policy.rb

11 lines
222 B
Ruby
Raw Normal View History

class UserBuildsSettingPolicy < ApplicationPolicy
# Public: Get list of parameters that the user is allowed to alter.
#
# Returns Array
def permitted_attributes
%i(external_nodes) + [platforms: []]
end
end