fix roles
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user