]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/accounts.py
people: Ignore more groups
[ipfire.org.git] / src / backend / accounts.py
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