Skip to content

Commit

Permalink
docs: make TODO note about authorization clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Mar 19, 2024
1 parent a5d0490 commit 858ba71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions astroplant-api/src/controllers/user/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ pub async fn list_kit_memberships(
)
.await?;

// TODO: perhaps only return kits that we are allowed to view (i.e., those that have a public
// dashboard, or those that we are a member of)
// TODO: perhaps only return kits that the querying user (not the user being queried) is
// allowed to view (i.e., those kits that have a public dashboard, or those that the querying
// user is a member of)

let user_id = user.get_id();
let conn = pg.get().await?;
Expand Down

0 comments on commit 858ba71

Please sign in to comment.