|
@@ -41,7 +41,8 @@ class TypeMixin(object):
|
|
if self.md.mentions:
|
|
if self.md.mentions:
|
|
participants = self.thread.participants.all()
|
|
participants = self.thread.participants.all()
|
|
for slug, user in self.md.mentions.items():
|
|
for slug, user in self.md.mentions.items():
|
|
- if user not in participants:
|
|
|
|
|
|
+ user_acl = user.acl(self.request)
|
|
|
|
+ if not (user in participants or (user_acl.private_threads.can_participate() and user_acl.private_threads.is_mod() and self.thread.replies_reported > 0)):
|
|
del self.md.mentions[slug]
|
|
del self.md.mentions[slug]
|
|
except AttributeError:
|
|
except AttributeError:
|
|
pass
|
|
pass
|