projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use current_user to select API response template. fixes #1594
[arvados.git]
/
services
/
api
/
app
/
models
/
api_client.rb
diff --git
a/services/api/app/models/api_client.rb
b/services/api/app/models/api_client.rb
index 3bda9f3d654b4e3fd5d84fe670dcb22680168c56..3e1dcd6c4a2ccecde1230c3f3b4fcfdb531db05b 100644
(file)
--- a/
services/api/app/models/api_client.rb
+++ b/
services/api/app/models/api_client.rb
@@
-4,7
+4,7
@@
class ApiClient < ActiveRecord::Base
include CommonApiTemplate
has_many :api_client_authorizations
include CommonApiTemplate
has_many :api_client_authorizations
- api_accessible :
superuser, :extend =>
:common do |t|
+ api_accessible :
user, extend:
:common do |t|
t.add :name
t.add :url_prefix
t.add :is_trusted
t.add :name
t.add :url_prefix
t.add :is_trusted