projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11308: Merge branch 'master' into 11308-python3
[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..acc7100f08c1595d3603a3b00bf6a91eaddc338e 100644
(file)
--- a/
services/api/app/controllers/arvados/v1/links_controller.rb
+++ b/
services/api/app/controllers/arvados/v1/links_controller.rb
@@
-20,7
+20,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])