Skip to content

Commit 95bb0b4

Browse files
committed
bot_builder: show bot builder in side bar from workspace feature flag
1 parent 7211cf0 commit 95bb0b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

daras_ai_v2/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def render(self):
417417
self._render_header()
418418

419419
def render_sidebar(self):
420-
if not self.is_current_user_admin():
420+
if not self.current_workspace.bot_builder:
421421
return
422422

423423
sidebar_ref = use_sidebar("builder-sidebar", self.request.session)

workspaces/widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def global_workspace_selector(user: AppUser, session: dict):
3939
except KeyError:
4040
pass
4141
set_current_workspace(session, int(switch_workspace_id))
42+
raise gui.RerunException()
4243

4344
try:
4445
current = [

0 commit comments

Comments
 (0)