Merge branch '8784-dir-listings'
[arvados.git] / services / api / app / models / keep_service.rb
index 6854ed2625218c462f786ab960268a8be7708910..bf5f3ccc01a5b6022aceaf2e60fc6b582ff25cda 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class KeepService < ArvadosModel
   include HasUuid
   include KindAndEtag
@@ -13,4 +17,13 @@ class KeepService < ArvadosModel
   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