]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - webapp/backend/accounts.py
talk: Show all users that have some address information
[people/shoehn/ipfire.org.git] / webapp / backend / accounts.py
index e52b1899f99ffcdf61199376758cb681486d2d41..a359a711518ea80fd5031634367f7bbf1be8451a 100644 (file)
@@ -183,7 +183,8 @@ class Account(Object):
                return "admins" in self.groups
 
        def is_talk_enabled(self):
-               return "sipUser" in self.classes or "sipRoutingObject" in self.classes
+               return "sipUser" in self.classes or "sipRoutingObject" in self.classes \
+                       or self.telephone_numbers or self.address
 
        @property
        def classes(self):