mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Permissions as YAML sequence #584

Closed Gredin67 closed 1 year ago

Gredin67 commented 1 year ago

Problem

Solution

Change to rough YAML sequences

permissions:
        relay:
            - *
        user:
            - "example.com"
            - "@user:example.com"
        admin:
            - "@admin:example.com"

Benefits

It would be super easy to parse. And avoid mistakes of people changing the value manually in the config.yaml file

Gredin67 commented 1 year ago

answer in the matrix chat was roughly "won't solve, too much code to change for too little value added", which I can understand :)