get subscription in admin
This commit is contained in:
@@ -10,7 +10,10 @@ import { AuthorizationService } from '../authorization.service';
|
||||
export class ReservePolicy {
|
||||
constructor(private readonly authorizationService: AuthorizationService) {}
|
||||
|
||||
canCreate(user: AuthUser, reserve: Pick<Reserve, 'salon' | 'customer'>): boolean {
|
||||
canCreate(
|
||||
user: AuthUser,
|
||||
reserve: Pick<Reserve, 'salon' | 'customer'>,
|
||||
): boolean {
|
||||
if (this.authorizationService.isAdmin(user)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user