-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -2652,9 +2652,7 @@ def has_guest_access(self, dashboard: "Dashboard") -> bool: | |||
return False | ||||
|
||||
dashboards = [ | ||||
r | ||||
for r in user.resources | ||||
if r["type"] == GuestTokenResourceType.DASHBOARD.value | ||||
r for r in user.resources if r["type"] == GuestTokenResourceType.DASHBOARD | ||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hao-zhuventures
Contributor
|
return self.get_guest_user_from_token(cast(GuestToken, token)) |
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
michael-s-molina
Aug 28, 2024
Author
Member
@hao-zhuventures Could you open an issue and linked it in #29999?
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
michael-s-molina
Aug 28, 2024
Author
Member
If you prefer, you can also open a PR to fix it and link there. Thanks!
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
is this change intentional? what will the new API contact look like for guest_token? I was tracing down to this while setting up dashboard embed, and had to revert it back to use .value property, because its a string type for the guest_user claims.