Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • checkAdministrator(req: Request, res: Response, next: Function): void
  • Check, if the user has a administrator session
    Session-Content: Payload JWT

    Parameters

    • req: Request

      Received request object

    • res: Response

      Received response object

    • next: Function

      Callback function

    Returns void

  • checkAdministratorOrModuleTeacher(req: Request, res: Response, next: Function): Promise<void>
  • Check, if the user has a administrator sessior or if the session id has the moduel it tries to access and is a teacher of the module
    Session-Content: Payload JWT

    Parameters

    • req: Request

      Received reqeust object

    • res: Response

      Received response object

    • next: Function

      Callback function

    Returns Promise<void>

  • checkAdministratorOrOwnID(req: Request, res: Response, next: Function): void
  • Check, if the user has a administrator session or if the session id equals the iid in the request body.
    Session-Content: Payload JWT

    Parameters

    • req: Request

      Received reqeust object

    • res: Response

      Received response object

    • next: Function

      Callback function

    Returns void

  • checkAdministratorOrOwnUsername(req: Request, res: Response, next: Function): void
  • Check, if the user has a administrator session or if the username equals the username in the request body.
    Session-Content: Payload JWT

    Parameters

    • req: Request

      Received request object

    • res: Response

      Received response object

    • next: Function

      Callback function

    Returns void

Generated using TypeDoc