Function PermissionsMixin

PermissionsMixin provides a structured way to enforce access control based on user roles and groups.

This mixin is inspired by the Didericis/permissions-mixin and adapted for specific app requirements and compatibility with Alanning Roles v3.

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

    • methodOptions: any

      Configuration options for the method permissions.

    Returns any

    • The modified methodOptions with enhanced access control.

Properties

Properties

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