]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Ignore more groups
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Oct 2019 11:34:06 +0000 (11:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Oct 2019 11:34:06 +0000 (11:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/backend/accounts.py

index 1ca3799bb8eef8fcae22669ecc11a37eb3a3b1fa..7fbf75d048b34569c9d6c9ffa4b4739a8d65a94f 100644 (file)
@@ -229,6 +229,7 @@ templates_people_DATA = \
        src/templates/people/conferences.html \
        src/templates/people/call.html \
        src/templates/people/calls.html \
+       src/templates/people/group.html \
        src/templates/people/groups.html \
        src/templates/people/index.html \
        src/templates/people/passwd.html \
index 7cb64d41136dc19fbac3fd317ebbf2bd7cbd3ea0..70b53acdb6ce1ce6750d8806c9b33647c055ae91 100644 (file)
@@ -1072,6 +1072,10 @@ class Groups(Object):
        hidden_groups = (
                "cn=LDAP Read Only,ou=Group,dc=ipfire,dc=org",
                "cn=LDAP Read Write,ou=Group,dc=ipfire,dc=org",
+               "cn=sudo,ou=Group,dc=ipfire,dc=org",
+
+               # Everyone is a member of people
+               "cn=people,ou=Group,dc=ipfire,dc=org",
        )
 
        @property
@@ -1151,6 +1155,9 @@ class Group(Object):
                if isinstance(other, self.__class__):
                        return (self.description or self.gid) < (other.description or other.gid)
 
+       def __bool__(self):
+               return True
+
        def __len__(self):
                """
                        Returns the number of members in this group