Classdesc

This class provides a roles guard.

Implements

Implements

  • CanActivate

Constructors

Methods

Constructors

Methods

  • Determines whether the current user can access a route based on their role.

    Parameters

    • context: ExecutionContext

      The execution context.

    Returns boolean

    • Returns true if the user can access the route, false otherwise.

    Method