From: Michael Tremer Date: Wed, 26 Jul 2023 15:51:38 +0000 (+0000) Subject: accounts: Create a special group for blog authors X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=868c68acdbdd38314b5bf31a1ca4e69a1aeb8eab;p=ipfire.org.git accounts: Create a special group for blog authors Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index b4c2a1d5..13030957 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -831,6 +831,9 @@ class Account(LDAPObject): def has_sip(self): return "sipUser" in self.classes or "sipRoutingObject" in self.classes + def is_blog_author(self): + return self.is_member_of_group("blog-authors") + def is_lwl(self): return self.is_member_of_group("lwl-staff")