19146: Add can_write and can_manage response fields.
[arvados.git] / services / api / app / models / user.rb
index bbb2378f5c56becac22646212beb343549da5170..52b96f9c512699c8cc7f7f71b6bdd31804fd5902 100644 (file)
@@ -72,6 +72,8 @@ class User < ArvadosModel
     t.add :is_invited
     t.add :prefs
     t.add :writable_by
+    t.add :can_write
+    t.add :can_manage
   end
 
   ALL_PERMISSIONS = {read: true, write: true, manage: true}