Function PermissionsMixin

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.

  • If both allow and deny are defined, an error is thrown.
  • Parameters

    • methodOptions: any

      The configuration options for the method.

    Returns any

    • The modified methodOptions with access control enforcement.

Properties

Properties

LoggedIn: { group: boolean; roles: boolean }[]