Merge branch '20468-installer-perf-knobs'. Closes #20468
[arvados.git] / services / api / app / controllers / arvados / v1 / links_controller.rb
index 32d005874a8eb30b213724db7e14962ed1f46d51..c956bfc9b467b5df3a98ef334961d4eb465bc3fc 100644 (file)
@@ -94,7 +94,7 @@ class Arvados::V1::LinksController < ApplicationController
       # user or (b) its head_uuid is an object the current_user
       # can_manage.
       model = Link
-      if with_lock
+      if with_lock && Rails.configuration.API.LockBeforeUpdate
         model = model.lock
       end
       link = model.unscoped.where(uuid: params[:uuid]).first