Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 6fa14b4

Browse files
committed
fix guest access
1 parent a2a4844 commit 6fa14b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_api/types/query/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def resolve_owner(_, info, username):
4444
configure_sentry_scope(query_name(info))
4545

4646
service = info.context["service"]
47-
user = info.context["request"].current_owner
47+
user = info.context["request"].current_owner or info.context["request"].user
4848

4949
if settings.IS_ENTERPRISE and settings.GUEST_ACCESS is False:
5050
if not user or not user.is_authenticated:

0 commit comments

Comments
 (0)