mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Small update to checkPermissiosn method to support infra:execute
This commit is contained in:
1 parent
975ef47564
commit
bd90ebd205
1 file changed
+1
-1
@@ -50,6 +50,6 @@ export function checkPermissions(action: string, resource: string, data?: object
|
||||
)
|
||||
.some(
|
||||
({ condition }: { condition: jsonLogic.RulesLogic }) =>
|
||||
condition === null || jsonLogic.apply(condition, data)
|
||||
condition === null || jsonLogic.apply(condition, { resource_name: resource, ...data })
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user