11345: Clamp retry-after to (0, max_retry_wait). Deindent retry_wrapper a bit for...
[arvados.git] / services / api / app / models / keep_service.rb
index 3baf0983d935a387dfa30bad3aed1115c1fbf065..58055297a1cf9945f36d441562d3818997b4da3a 100644 (file)
@@ -8,8 +8,18 @@ class KeepService < ArvadosModel
     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