From 868c68acdbdd38314b5bf31a1ca4e69a1aeb8eab Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 26 Jul 2023 15:51:38 +0000 Subject: [PATCH] accounts: Create a special group for blog authors Signed-off-by: Michael Tremer --- src/backend/accounts.py | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.47.3