module provinces

This commit is contained in:
2026-07-07 19:44:31 +03:30
parent e2d9b5ef99
commit 45ab6a8dda
27 changed files with 3848 additions and 6 deletions
@@ -0,0 +1,12 @@
import { Injectable } from '@nestjs/common';
import { AuthUser } from '../../auth/interfaces/auth-user.interface';
import { AuthorizationService } from '../authorization.service';
@Injectable()
export class ProvincePolicy {
constructor(private readonly authorizationService: AuthorizationService) {}
canManage(user: AuthUser): boolean {
return this.authorizationService.isAdmin(user);
}
}