]> git.ipfire.org Git - ipfire.org.git/commitdiff
accounts: Create a special group for blog authors
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 15:51:38 +0000 (15:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 15:51:38 +0000 (15:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py

index b4c2a1d5e03ece5a986fd50d653d7835fd3ba3f3..1303095784a3dff0ba1400b4f54871da1b61bf95 100644 (file)
@@ -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")