From aaaff48e1007d1370e7575781df7d8284e071972 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 30 Jul 2015 13:02:00 -0300 Subject: [PATCH] Added TODO --- colab/super_archives/views.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/colab/super_archives/views.py b/colab/super_archives/views.py index 73cf761..da6377e 100644 --- a/colab/super_archives/views.py +++ b/colab/super_archives/views.py @@ -32,6 +32,8 @@ class ThreadView(View): thread = get_object_or_404(Thread, subject_token=thread_token, mailinglist__name=mailinglist) + # TODO: Refactor this code + # Use local flag is_private instead of always check the API!! all_privates = dict(mailman.all_lists(private=True)) if all_privates[thread.mailinglist.name]: if not request.user.is_authenticated(): -- libgit2 0.21.2