1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Arvados::V1::ComputedPermissionsController < ApplicationController
6 before_action :admin_required
8 def object_list(**args)
9 if !['none', '', nil].include?(params[:count])
10 raise ArgumentError.new("count parameter must be 'none'")
12 params[:count] = 'none'
14 if !['0', 0, nil].include?(params[:offset])
15 raise ArgumentError.new("non-zero offset parameter #{params[:offset].inspect} is not supported")
21 def limit_database_read(**args)
22 # This is counterproductive for this table, and the default
23 # implementation doesn't work because it relies on some
24 # real-model-like behavior that ComputedPermission does not offer.