]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
talk: Show all users that have some address information
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 13:13:41 +0000 (14:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 13:13:41 +0000 (14:13 +0100)
Formerly, only users who enabled their SIP account were shown

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):