mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 13:38:03 +00:00
We also need to check if user is anon:
Fix: !43, introduced by d5bf6de4
This commit is contained in:
@@ -26,8 +26,9 @@ def basepage(request):
|
||||
context['SECURE_BASE_URL'] = SECURE_BASE_URL
|
||||
context['max_emails'] = False
|
||||
if request.user:
|
||||
unconfirmed = request.user.unconfirmedemail_set.count()
|
||||
if unconfirmed >= MAX_NUM_UNCONFIRMED_EMAILS:
|
||||
context['max_emails'] = True
|
||||
if not request.user.is_anonymous:
|
||||
unconfirmed = request.user.unconfirmedemail_set.count()
|
||||
if unconfirmed >= MAX_NUM_UNCONFIRMED_EMAILS:
|
||||
context['max_emails'] = True
|
||||
|
||||
return context
|
||||
|
||||
Reference in New Issue
Block a user