Skip to content

Base options

Base options

There are options that exist for every message type in the SDK. You'll find a list with all of them below.

NameRequiredDefaultAvailabilityDescription
privilegesfalse>= Shopware 6.6.3.0The privileges that will be checked before executing the message in the Shopware Administration

Example privileges

typescript
import * as sw from '@shopware-ag/meteor-admin-sdk';

// This notification will only be displayed if the user has `product:read` permissions.
sw.notification.dispatch({
    message: 'Your product report is ready',
    privileges: [
        'product:read',
    ],
});