add user read permission to clients

This commit is contained in:
2025-06-09 17:43:04 +05:30
parent 77af90c31d
commit 99e34aa8dc
2 changed files with 2 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ export async function listUsers(user: AuthenticatedUser) {
return await userModel
.find({
$and: [
{ tenantId: user.tenantId, orgId: user.orgId },
{ tenantId: user.tenantId, orgId: user.orgId, role: "client" },
{ dev: { $ne: true } },
],
})

View File

@@ -116,6 +116,7 @@ export const rules: Record<
},
client: {
claims: [
"user:read",
"permit:read",
"permit:write",
"file:upload",