kopia lustrzana https://github.com/wagtail/wagtail
Notification emails are no longer sent to inactive users. Fixes #90
rodzic
b78829acc3
commit
50b4f7de44
|
@ -41,7 +41,7 @@ def users_with_page_permission(page, permission_type, include_superusers=True):
|
||||||
if include_superusers:
|
if include_superusers:
|
||||||
q |= Q(is_superuser=True)
|
q |= Q(is_superuser=True)
|
||||||
|
|
||||||
return User.objects.filter(q).distinct()
|
return User.objects.filter(is_active=True).filter(q).distinct()
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
|
Ładowanie…
Reference in New Issue