fix roles

This commit is contained in:
2026-06-30 12:01:13 +03:30
parent c1105c9954
commit d79fa12d65
14 changed files with 136 additions and 14 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export class CustomersService {
throw new NotFoundException(`Customer #${id} not found`);
}
if (user && !this.customerPolicy.canRead(user, customer)) {
if (user && !(await this.customerPolicy.canRead(user, customer))) {
throw new ForbiddenException();
}