Hex Core JS
    Preparing search index...

    Type Alias PermissionContextValue

    type PermissionContextValue = {
        clearPermissions: () => void;
        permissions: Record<string, boolean>;
        setPermissions: (permissions: string[]) => void;
    }
    Index

    Properties

    clearPermissions: () => void

    Clear all stored permissions.

    permissions: Record<string, boolean>

    Record of permission name to boolean (indicating whether the current user has that permission). In practice this will only be populated with the names of permissions owned by the user and all values will be true.

    setPermissions: (permissions: string[]) => void

    Update the permissions object using the given array of permission names.