1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class KeepService < ArvadosModel
8 include CommonApiTemplate
10 api_accessible :user, extend: :common do |t|
13 t.add :service_ssl_flag
17 api_accessible :superuser, :extend => :user do |t|
22 def permission_to_create
23 current_user.andand.is_admin
26 def permission_to_update
27 current_user.andand.is_admin