feat: implement partner licenses module with pagination and filtering capabilities
This commit is contained in:
@@ -23,12 +23,22 @@ export class PosGuard {
|
||||
const { posId } = cookie
|
||||
|
||||
if (!posId) {
|
||||
throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||
return false
|
||||
// throw new ForbiddenException('شما دسترسی لازم را ندارید.')
|
||||
}
|
||||
|
||||
const checkLicenseActivation = await this.prisma.licenseAccountAllocation.findFirst({
|
||||
where: {
|
||||
account_id: tokenPayload.account_id,
|
||||
OR: [
|
||||
{
|
||||
account_id: tokenPayload.account_id,
|
||||
},
|
||||
{
|
||||
account: {
|
||||
consumer_id: tokenPayload.user?.id,
|
||||
},
|
||||
},
|
||||
],
|
||||
license_activation: {
|
||||
OR: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user