+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class KeepService < ArvadosModel
include HasUuid
include KindAndEtag
t.add :service_port
t.add :service_ssl_flag
t.add :service_type
+ t.add :read_only
+ end
+ api_accessible :superuser, :extend => :user do |t|
+ end
+
+ protected
+
+ def permission_to_create
+ current_user.andand.is_admin
end
+ def permission_to_update
+ current_user.andand.is_admin
+ end
end