comparison sat/core/sat_main.py @ 3779:89b13b405b93

core: remove useless method (it's available directly in client)
author Goffi <goffi@goffi.org>
date Mon, 16 May 2022 13:02:59 +0200
parents 001ea5f4a2f9
children 8289ac1b34f4
comparison
equal deleted inserted replaced
3778:7b90d7c474fa 3779:89b13b405b93
937 raise exceptions.ProfileUnknownError(profile_key) 937 raise exceptions.ProfileUnknownError(profile_key)
938 if profile not in self.profiles: 938 if profile not in self.profiles:
939 return False 939 return False
940 return self.profiles[profile].isConnected() 940 return self.profiles[profile].isConnected()
941 941
942 def isAdmin(self, client: xmpp.SatXMPPEntity) -> bool:
943 """Tells if a client is an administrator with extra privileges"""
944 return client.profile in self.memory.admins
945
946 ## Encryption ## 942 ## Encryption ##
947 943
948 def registerEncryptionPlugin(self, *args, **kwargs): 944 def registerEncryptionPlugin(self, *args, **kwargs):
949 return encryption.EncryptionHandler.registerPlugin(*args, **kwargs) 945 return encryption.EncryptionHandler.registerPlugin(*args, **kwargs)
950 946