From: Michael Tremer Date: Tue, 29 Oct 2019 11:34:06 +0000 (+0000) Subject: people: Ignore more groups X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d71fd27994fde2641e5d78a40cd903d60d90a3b7;p=ipfire.org.git people: Ignore more groups Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 1ca3799b..7fbf75d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 7cb64d41..70b53acd 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -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