venantius / darg

Kill the status meeting -- an abandoned IDoneThis competitor.
1 stars 0 forks source link

User profile should expose the user's teams, with authorization. #178

Open venantius opened 9 years ago

venantius commented 9 years ago

What I mean by this is at that the moment the /api/v1/user endpoint returns

{
  email: "test-user2@darg.io",
  name: "Finn the Human",
  admin: false,
  bot: true,
  active: true,
  id: 4
}

I think we should include a teams parameter as well. When viewing one's own user profile (at /api/v1/user, all teams would be visible, but if you're viewing another user's profile via /api/v1/user/:user-id, you'd only be able to see the teams that you have in common with them).