Commit aaaff48e1007d1370e7575781df7d8284e071972
1 parent
f1daeea2
Exists in
master
and in
31 other branches
Added TODO
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
colab/super_archives/views.py
@@ -32,6 +32,8 @@ class ThreadView(View): | @@ -32,6 +32,8 @@ class ThreadView(View): | ||
32 | thread = get_object_or_404(Thread, subject_token=thread_token, | 32 | thread = get_object_or_404(Thread, subject_token=thread_token, |
33 | mailinglist__name=mailinglist) | 33 | mailinglist__name=mailinglist) |
34 | 34 | ||
35 | + # TODO: Refactor this code | ||
36 | + # Use local flag is_private instead of always check the API!! | ||
35 | all_privates = dict(mailman.all_lists(private=True)) | 37 | all_privates = dict(mailman.all_lists(private=True)) |
36 | if all_privates[thread.mailinglist.name]: | 38 | if all_privates[thread.mailinglist.name]: |
37 | if not request.user.is_authenticated(): | 39 | if not request.user.is_authenticated(): |