231_user_restrict_public_groups.sql 455 B

1234567
  1. -- Per-user access control for public (non-exclusive) groups.
  2. --
  3. -- Public groups have always been bindable by every user. When this flag is
  4. -- enabled for a user, the public groups they may bind are narrowed to the ones
  5. -- listed in user_allowed_groups, which until now only carried exclusive groups.
  6. -- The default keeps every existing user unrestricted.
  7. ALTER TABLE users ADD COLUMN IF NOT EXISTS restrict_public_groups BOOLEAN NOT NULL DEFAULT false;