Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set policy problem #33

Open
DimitryVo opened this issue Dec 2, 2024 · 0 comments
Open

Set policy problem #33

DimitryVo opened this issue Dec 2, 2024 · 0 comments

Comments

@DimitryVo
Copy link

DimitryVo commented Dec 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant