Skip to content

Commit 1ccc59e

Browse files
authored
Contact owners: use correct organization to filter (#8325)
1 parent 2bd2048 commit 1ccc59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/management/commands/contact_owners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def handle(self, *args, **options):
9797
users = AdminPermission.owners(project)
9898
elif organization:
9999
organization = Organization.objects.get(slug=organization)
100-
users = AdminPermission.owners(project)
100+
users = AdminPermission.owners(organization)
101101
elif settings.RTD_ALLOW_ORGANIZATIONS:
102102
users = (
103103
User.objects

0 commit comments

Comments
 (0)