Channel Override deny permissions respect hoist order

(#4896) Feature Open: Under consideration channels moderation

Current problem

so for example I have 2 roles: 1) role A has a channel override set "attach files" permission OFF and is higher than role B 2) role B has a channel override set "attach files" permission ON and is lower than role A If a user has both role A and role B, they can still attach files in a channel, even though role A forbids them from attaching images and is hoisted higher than role B

Proposed change

Let the highest hoisted role override lower roles for channel overrides. If you DENY a role a channel permission and it's higher than a role that ALLOWS it, the higher role should have priority. I am aware that this would potentially be a breaking change for the API and bots, perhaps it could be put behind an optional guild toggle or something.

Platform

macOS, Windows, Linux, Web, Android, iOS, API, Self-hosting

1 comment

Sign in with Fluxer to comment and vote.
Comment by Flit
Flit 1 vote
i support this! this has always felt like a design flaw to me on Discord, and if we ignore the goal of maintaining API compatibility for a moment, keeping it seems like an odd choice to me. other social software like phpBB have similar permission masking and it works very well there. one additional detail i should mention: any per-user permissions should continue to take priority over role-based permissions.