Skip to content

Function: useCan() ​

ts
function useCan(permission): Accessor<boolean>;

Defined in: packages/solid/src/context.ts:68

true if the user has the permission.

Parameters ​

ParameterType
permissionstring

Returns ​

Accessor<boolean>

Released under the MIT License. Inspired by spatie/laravel-permission.