default( )


Sets the default permissions handler.

The default handler runs when the specified channel or resource doesn't have an explicit handler.

Learn more about permission resolution.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(channel: Channel, subscriber: Subscriber): Promise<{read: boolean}> | {read: boolean} Default handler to run when checking permissions.

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?