projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add repositories#get_all_permissions
[arvados.git]
/
services
/
api
/
app
/
controllers
/
api_client_authorizations_controller.rb
1
class ApiClientAuthorizationsController < ApplicationController
2
def index
3
if Thread.current[:api_client_trusted]
4
@objects = model_class.
5
joins(:user, :api_client).
6
where('user_id=?', current_user.id)
7
else
8
@objects = model_class.where('1=0')
9
end
10
end
11
end