models: Add can_access_all_users_group setting.

This commit adds new setting for controlling who can access
all users in the realm which would have "Everyone" and
"Members only" option.

Fixes part of #10970.
This commit is contained in:
Sahil Batra
2023-03-23 20:12:00 +05:30
committed by Tim Abbott
parent f20d427a4d
commit c82bb3ec76
13 changed files with 165 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import datetime
from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import Any, Callable, Dict, List, Optional, Tuple, TypedDict, TypeVar, Union
from django_stubs_ext import StrPromise
@@ -291,6 +291,7 @@ class GroupPermissionSetting:
default_group_name: str
id_field_name: str
default_for_system_groups: Optional[str] = None
allowed_system_groups: List[str] = field(default_factory=list)
@dataclass