Repository navigation
Hide/remove the "Charts" section in landing page for certain users #39019
Replies: 1 comment 2 replies
|
Hi Teena, There's currently no built-in configuration or role-based setting to hide the Charts section from the landing page for specific users. The only section that currently respects permissions is Saved Queries, which hides itself if the user lacks A community PR (#33946) has been submitted to hide the Charts section based on Best workaround today — bypass the welcome page entirely by redirecting users to from flask_appbuilder import expose, IndexView
from flask import g, redirect
class SupersetDashboardIndexView(IndexView):
@expose('/')
def index(self):
if not g.user:
return redirect('/login')
return redirect('/dashboard/list/')
def mutate_app(app):
from superset.extensions import appbuilder
appbuilder.indexview = SupersetDashboardIndexView
return app
FLASK_APP_MUTATOR = mutate_appYou could make this conditional per role if you check Other options:
So to answer your question directly — yes, selectively hiding the Charts section today would require either frontend changes or using the redirect workaround above to avoid the welcome page altogether. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a multi-tenancy enabled Superset installation. For some external user dashboards, I need to give dashboard view only access. For such users, is it possible to hide/disable the "Charts" widget/section in the landing page?
Does this require front end changes?
Thanks,
Teena
@dosu
All reactions