We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfbdde4 commit 61648cdCopy full SHA for 61648cd
readthedocs/core/templatetags/readthedocs/socialaccounts.py
@@ -41,3 +41,9 @@ def has_github_app_account(account):
41
provider=GitHubAppProvider.id,
42
uid=account.uid,
43
).exists()
44
+
45
46
+@register.filter
47
+def user_has_github_app_account(user):
48
+ """Check if a user has a GitHub App account."""
49
+ return user.socialaccount_set.filter(provider=GitHubAppProvider.id).exists()
0 commit comments