Merge branch '15138-version-our-documentation'
[arvados.git] / apps / workbench / app / models / api_client_authorization.rb
index 9cf1359b49ebce37d8b3997f7ecf652b2b49bcd6..b78cb286ec80bf7d2ace8cbeaecc55385aeb2608 100644 (file)
@@ -1,5 +1,12 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class ApiClientAuthorization < ArvadosBase
-  def attribute_editable?(attr)
-    ['expires_at', 'default_owner'].index attr
+  def editable_attributes
+    %w(expires_at default_owner_uuid)
+  end
+  def self.creatable?
+    false
   end
 end