projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
13006: Test exposing the bug
[arvados.git]
/
services
/
api
/
app
/
controllers
/
arvados
/
v1
/
links_controller.rb
diff --git
a/services/api/app/controllers/arvados/v1/links_controller.rb
b/services/api/app/controllers/arvados/v1/links_controller.rb
index 798217dc0cfef7aaea385a67ede5fae198ce6e41..f54c4a9a519c563ca8fc08e9bb480b254e616608 100644
(file)
--- a/
services/api/app/controllers/arvados/v1/links_controller.rb
+++ b/
services/api/app/controllers/arvados/v1/links_controller.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class Arvados::V1::LinksController < ApplicationController
def check_uuid_kind uuid, kind
class Arvados::V1::LinksController < ApplicationController
def check_uuid_kind uuid, kind
@@
-20,7
+24,7
@@
class Arvados::V1::LinksController < ApplicationController
end
def get_permissions
end
def get_permissions
- if current_user.can?(manage: @object)
+ if current_user.
andand.
can?(manage: @object)
# find all links and return them
@objects = Link.where(link_class: "permission",
head_uuid: params[:uuid])
# find all links and return them
@objects = Link.where(link_class: "permission",
head_uuid: params[:uuid])
@@
-62,7
+66,7
@@
class Arvados::V1::LinksController < ApplicationController
super
# head_kind and tail_kind columns are now virtual,
super
# head_kind and tail_kind columns are now virtual,
- # equiv
i
lent functionality is now provided by
+ # equiv
a
lent functionality is now provided by
# 'is_a', so fix up any old-style 'where' clauses.
if @where
@filters ||= []
# 'is_a', so fix up any old-style 'where' clauses.
if @where
@filters ||= []
@@
-82,7
+86,7
@@
class Arvados::V1::LinksController < ApplicationController
super
# head_kind and tail_kind columns are now virtual,
super
# head_kind and tail_kind columns are now virtual,
- # equiv
i
lent functionality is now provided by
+ # equiv
a
lent functionality is now provided by
# 'is_a', so fix up any old-style 'filter' clauses.
@filters = @filters.map do |k|
if k[0] == 'head_kind' and k[1] == '='
# 'is_a', so fix up any old-style 'filter' clauses.
@filters = @filters.map do |k|
if k[0] == 'head_kind' and k[1] == '='