fix lint issue with permission

This commit is contained in:
Maidul Islam
2025-10-21 01:01:48 -04:00
parent f2c6884499
commit a7d337f97a

View File

@@ -24,7 +24,7 @@ export const withPermission = <T extends object, J extends TOrgPermission>(
// akhilmhdh: Set as any due to casl/react ts type bug
// REASON: casl due to its type checking can't seem to union even if union intersection is applied
if (permission.cannot(action as any, subject)) {
if (permission.cannot(action as any, subject as any)) {
return (
<div
className={twMerge(