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

PUT /directory/list/room/:roomID can have additional access control checks, but clients can't predict what those are #981

Open
reivilibre opened this issue Mar 3, 2022 · 0 comments
Labels
clarification An area where the expected behaviour is understood, but the spec could do with being more explicit improvement An idea/future MSC for the spec

Comments

@reivilibre
Copy link
Contributor

When reading PUT /_matrix/client/r0/directory/list/room/:roomID, I notice the spec says that 'servers may choose to add additional access control checks'...

Unfortunately this then means that the client can't predict whether the server will let it add a room to the directory before actually doing it. Knowing this information would likely be useful for displaying a 'greyed out' state on the form when appropriate (and maybe more appropriately: not showing it when not appropriate).

This seems related to element-hq/element-meta#287 where Element Web bases the 'greyed out' state of the checkbox on a separate factor to whether you're actually allowed to change it, which means that users who can do it are being misled and shown that they can't.

@turt2live turt2live added clarification An area where the expected behaviour is understood, but the spec could do with being more explicit improvement An idea/future MSC for the spec labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification An area where the expected behaviour is understood, but the spec could do with being more explicit improvement An idea/future MSC for the spec
Projects
None yet
Development

No branches or pull requests

2 participants