fix: permission
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 6s

This commit is contained in:
Methapon2001 2025-08-22 09:33:49 +07:00
parent c2eaa5fba8
commit df38eebbcc

View file

@ -623,7 +623,7 @@ export class CustomerBranchFileController extends Controller {
},
});
if (!data) throw notFoundError("Customer Branch");
await permissionCheck(user, data.customer.registeredBranch);
await permissionCheckCompany(user, data.customer.registeredBranch);
}
@Get("attachment")