Skip to content

Preparatory work for permissions defined in terms of user groups, not roles #1215

Open
@timabbott

Description

@timabbott

This is a preparatory issue for a piece of work that will be eventually required to correctly implement Zulip's future user-group based permissions model. In zulip/zulip#21611, we add API support for clients to be able to receive in /register, and maintain via events, the set of user groups that each user is directly a member of, as well as any subgroups of those groups.

I'm guessing sometime this summer, the server will start adding permissions settings that are defined in terms of a user group that has access to do X, rather than a role; which would mean that client-side checks for whether a user has that permission would need to be able to do client-side queries of the form "Is the current user in group ID N".

I don't expect any such features or migrations of existing permissions settings to merge before Zulip 6.0 is released, and even if they do, they will likely only have roles as options for backwards-compatibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions