PermissionsMixin is a utility function that adds role-based access control to Meteor methods.
It verifies user permissions based on allow and deny rules and integrates with the Alanning Roles package.
Throws
If both allow and deny are defined, an error is thrown.
PermissionsMixin(methodOptions:any):any
Parameters
methodOptions: any
The configuration options for the method.
Returns any
The modified methodOptions with access control enforcement.
PermissionsMixin is a utility function that adds role-based access control to Meteor methods. It verifies user permissions based on
allowanddenyrules and integrates with the Alanning Roles package.Throws
allowanddenyare defined, an error is thrown.