mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
fix lint issue with permission
This commit is contained in:
@@ -24,7 +24,7 @@ export const withPermission = <T extends object, J extends TOrgPermission>(
|
|||||||
|
|
||||||
// akhilmhdh: Set as any due to casl/react ts type bug
|
// 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
|
// 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 (
|
return (
|
||||||
<div
|
<div
|
||||||
className={twMerge(
|
className={twMerge(
|
||||||
|
|||||||
Reference in New Issue
Block a user