Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 2db983f

Browse files
author
Rob Hudson
committed
Updated so "developed" in search and app API are the same (bug 886385)
1 parent 987e6e6 commit 2db983f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkt/webapps/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def app_to_dict(app, region=None, profile=None):
132132
for n in app.device_types]
133133
if profile:
134134
data['user'] = {
135-
'developed': app.has_author(profile, [amo.AUTHOR_ROLE_OWNER]),
135+
'developed': AddonUser.objects.filter(
136+
user=profile, role=amo.AUTHOR_ROLE_OWNER).exists(),
136137
'installed': app.has_installed(profile),
137138
'purchased': app.pk in profile.purchase_ids(),
138139
}

0 commit comments

Comments
 (0)