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 in 4483e33102 and was
only used in digest.py other than the tests, but its use
in diget.py was removed in 735b6cb761 and the function
itself was not removed from models.py.
This commit is contained in:
sahil839
2021-04-12 01:26:49 +05:30
committed by Tim Abbott
parent 685fbffd91
commit d8c58527cc
2 changed files with 0 additions and 4 deletions

View File

@@ -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])