{
- if (!isCurrentUser) {
- jumpToUserCursor(user.user_id)
- setDropdownOpen(false)
- }
+ jumpToUserCursor(user.user_id)
+ setDropdownOpen(false)
}}
>
@@ -219,7 +235,7 @@ const OnlineUsers = () => {
'system-xs-medium text-text-secondary',
'text-text-tertiary',
)}
-
+
)
})}
diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx
index 8956c99e41c..2c035f07b2b 100644
--- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx
+++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx
@@ -100,7 +100,8 @@ const BasePanel: FC
= ({ id, data, children }) => {
...userProfileQueryOptions(),
select: (data) => data.profile,
})
- const { isConnected, nodePanelPresence } = useCollaboration(appId as string)
+ const canEdit = useHooksStore((s) => s.accessControl.canEdit)
+ const { isConnected, nodePanelPresence } = useCollaboration(appId as string, canEdit)
const { showMessageLogModal } = useAppStore(
useShallow((state) => ({
showMessageLogModal: state.showMessageLogModal,
diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx
index 5990ddad373..61b255cd095 100644
--- a/web/app/components/workflow/nodes/_base/node.tsx
+++ b/web/app/components/workflow/nodes/_base/node.tsx
@@ -9,6 +9,7 @@ import { UserAvatarList } from '@/app/components/base/user-avatar-list'
import BlockIcon from '@/app/components/workflow/block-icon'
import { ToolType } from '@/app/components/workflow/block-selector/types'
import { useCollaboration } from '@/app/components/workflow/collaboration/hooks/use-collaboration'
+import { useHooksStore } from '@/app/components/workflow/hooks-store'
import { useNodeIterationInteractions } from '@/app/components/workflow/nodes/iteration/use-interactions'
import { useNodeLoopInteractions } from '@/app/components/workflow/nodes/loop/use-interactions'
import CopyID from '@/app/components/workflow/nodes/tool/components/copy-id'
@@ -62,7 +63,8 @@ const BaseNode: FC = ({ id, data, children }) => {
select: (data) => data.profile,
})
const appId = useStore((s) => s.appId)
- const { nodePanelPresence } = useCollaboration(appId as string)
+ const canEdit = useHooksStore((s) => s.accessControl.canEdit)
+ const { nodePanelPresence } = useCollaboration(appId as string, canEdit)
const controlMode = useStore((s) => s.controlMode)
const isContextMenuTarget = useStore(
(s) => s.contextMenuTarget?.type === 'node' && s.contextMenuTarget.nodeId === id,