Skip to content

Commit

Permalink
fix(user): add back ability for deployment setting
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Feb 12, 2025
1 parent 625793f commit 8e8e164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/auth/services/ability/ability.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class AbilityService {
private readonly RULES: Record<Role, RawRule[]> = {
REGULAR_ANONYMOUS_USER: [
{ action: ["create", "read", "sign"], subject: "UserWallet", conditions: { userId: "${user.id}" } },
{ action: "read", subject: "User", conditions: { id: "${user.id}" } }
{ action: "read", subject: "User", conditions: { id: "${user.id}" } },
{ action: "manage", subject: "DeploymentSetting", conditions: { userId: "${user.id}" } }
],
REGULAR_USER: [
{ action: ["create", "read", "sign"], subject: "UserWallet", conditions: { userId: "${user.id}" } },
Expand Down

0 comments on commit 8e8e164

Please sign in to comment.