mirror of https://github.com/zulip/zulip.git
models: Delete unused UserProfile.is_service_bot.
This function had the wrong format for its use case (in zerver/lib/actions.py) anyway, since we don't have a full UserProfile object there.
This commit is contained in:
parent
1b744c5c84
commit
9bd535f914
|
@ -772,10 +772,6 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
|||
def is_embedded_bot(self) -> bool:
|
||||
return self.bot_type == UserProfile.EMBEDDED_BOT
|
||||
|
||||
@property
|
||||
def is_service_bot(self) -> bool:
|
||||
return self.is_bot and self.bot_type in UserProfile.SERVICE_BOT_TYPES
|
||||
|
||||
@property
|
||||
def allowed_bot_types(self) -> List[int]:
|
||||
allowed_bot_types = []
|
||||
|
|
Loading…
Reference in New Issue