Skip to content

Commit 9d963c7

Browse files
committed
fix(dashboard): enforce secure multitenancy isolation in getuserapps
1 parent a7f631b commit 9d963c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎actions/apps.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export async function getUserApps() {
4040
const { data, error } = await supabase
4141
.from("apps")
4242
.select("id, name, updated_at, published_config")
43+
.eq("user_id", userId)
4344
.order("updated_at", { ascending: false });
4445

4546
if (error) {

0 commit comments

Comments
 (0)