Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lily Kuang <lily@preset.io>
  • Loading branch information
suddjian and lilykuang committed Jan 25, 2022
1 parent 8fb08b1 commit e3dc5ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/embedded/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const LazyDashboardPage = lazy(

const EmbeddedApp = () => (
<Router>
<Route path="/superset/dashboard/:idOrSlug/embedded">
<Route path="/dashboard/:idOrSlug/embedded">
<Suspense fallback={<Loading />}>
<RootContextProviders>
<ErrorBoundary>
Expand Down
2 changes: 1 addition & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _try_json_readsha(filepath: str, length: int) -> Optional[str]:
# a custom security config could potentially give access to setting filters on
# tables that users do not have access to.
"ROW_LEVEL_SECURITY": True,
"EMBEDDED_SUPERSET": False, # This requires that the public role be available
"EMBEDDED_SUPERSET": False,
# Enables Alerts and reports new implementation
"ALERT_REPORTS": False,
# Enable experimental feature to search for other dashboards
Expand Down
2 changes: 1 addition & 1 deletion superset/security/guest_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def is_authenticated(self) -> bool:
def is_anonymous(self) -> bool:
"""
This is set to false because lots of code assumes that
role = Public if user.is_anonymous == false.
if user.is_anonymous, then role = Public
But guest users need to have their own role independent of Public.
"""
return False
Expand Down

0 comments on commit e3dc5ee

Please sign in to comment.