projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2754: Hide unhelpful "Add a new job" button.
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
user.rb
diff --git
a/apps/workbench/app/models/user.rb
b/apps/workbench/app/models/user.rb
index cc9b9bb058cea3e2696eaf37a85559fde93d1431..44d615b89fecf117dcc618e01627e1beb74e38f2 100644
(file)
--- a/
apps/workbench/app/models/user.rb
+++ b/
apps/workbench/app/models/user.rb
@@
-38,4
+38,15
@@
class User < ArvadosBase
def friendly_link_name
[self.first_name, self.last_name].compact.join ' '
end
def friendly_link_name
[self.first_name, self.last_name].compact.join ' '
end
+
+ def unsetup
+ self.private_reload($arvados_api_client.api(self.class,
+ "/#{self.uuid}/unsetup",
+ {}))
+ end
+
+ def self.setup params
+ $arvados_api_client.api(self, "/setup", params)
+ end
+
end
end