Skip to content

Set policy problem #33

Description

@DimitryVo

Hello, I have checked two matchRules of policy "id": "custom-hook-to-reject-room-creation-once-in-a-while":

  1. "routeMatchesRegex": "^/_matrix/client/r0/createRoom",
  2. "matchRules": [ {"type": "method", "regex": "POST"},
    {"type": "route", "regex": "^/_matrix/client/r0/createRoom"} ]
    First matchRule is worked (block create of room), but second is not.
    Could you recommend anything how to use multi condition match policy (second matchRule).

In additional, can I use policy for restrict user's media by IP mask and userAgent (mobile/PC)?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions