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

Add option to toggle group requests #49

Open
linusgke opened this issue Nov 26, 2023 · 1 comment
Open

Add option to toggle group requests #49

linusgke opened this issue Nov 26, 2023 · 1 comment

Comments

@linusgke
Copy link
Member

Add a toggle-switch that allows group administrators to disable the necessity of accepting new users.

@lchristmann
Copy link
Member

lchristmann commented Dec 2, 2023

Two things are to be viewed separately here:

  • if you JUST REGISTERED to the WaldorfConnect platform, you NEED TO BE ACCEPTED by a group admin (if you selected any groups to join when registering | otherwise another admin) ANYWAYS - doesn't matter if this group is open for anyone or needs accepting
  • if you've ALREADY BEEN ACCEPTED TO THE PLATFORM after registration, you can join such groups that have accepting new users disabled immediately in "self-service"

The can be implemented as such:

  • the first case is covered by a user status (ACCEPTED TO THE PLATFORM: accepted column in users table)
  • the second case is covered by the users status in group memberships (ACCEPTED TO A GROUP: accepted column in group_membership table)

Now if a user is in the first state, he always needs to be accepted, while in the second case, he can be allowed to immediately join groups that allow this.

This leads to the following rules:

  • If a freshly registered user is accepted to a group, his status is accepted to BOTH THE PLATFORM and THIS GROUP.
  • If a freshly registrered user is accepted by an admin via the User Administration and not to a group, only his accepted TO THE PLATFORM status is set.
  • An "old/established" user has to be accepted to the groups that require it, but can join groups all by himself that have accepting new users disabled.

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

2 participants