mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
models: Remove unused function can_access_all_realm_members.
This commit removes can_access_all_realm_members function as it is not used anywhere in code other than tests. This function was originally added in4483e33102and was only used in digest.py other than the tests, but its use in diget.py was removed in735b6cb761and the function itself was not removed from models.py.
This commit is contained in:
@@ -1542,9 +1542,6 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||
def can_access_public_streams(self) -> bool:
|
||||
return not (self.is_guest or self.realm.is_zephyr_mirror_realm)
|
||||
|
||||
def can_access_all_realm_members(self) -> bool:
|
||||
return not (self.realm.is_zephyr_mirror_realm or self.is_guest)
|
||||
|
||||
def major_tos_version(self) -> int:
|
||||
if self.tos_version is not None:
|
||||
return int(self.tos_version.split(".")[0])
|
||||
|
||||
Reference in New Issue
Block a user