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 return await userModel
.find({ .find({
$and: [ $and: [
{ tenantId: user.tenantId, orgId: user.orgId }, { tenantId: user.tenantId, orgId: user.orgId, role: "client" },
{ dev: { $ne: true } }, { dev: { $ne: true } },
], ],
}) })

View File

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