diff --git a/webapp/src/components/markdownEditorInput/markdownEditorInput.tsx b/webapp/src/components/markdownEditorInput/markdownEditorInput.tsx index 2521777b6..e49a7592e 100644 --- a/webapp/src/components/markdownEditorInput/markdownEditorInput.tsx +++ b/webapp/src/components/markdownEditorInput/markdownEditorInput.tsx @@ -16,7 +16,7 @@ import {debounce} from "lodash" import {useAppSelector} from '../../store/hooks' import {IUser} from '../../user' -import {getBoardUsersList} from '../../store/users' +import {getBoardUsersList, getMe} from '../../store/users' import createLiveMarkdownPlugin from '../live-markdown-plugin/liveMarkdownPlugin' import './markdownEditorInput.scss' @@ -56,13 +56,14 @@ const MarkdownEditorInput = (props: Props): ReactElement => { const board = useAppSelector(getCurrentBoard) const clientConfig = useAppSelector(getClientConfig) const ref = useRef(null) + const me = useAppSelector(getMe) const [suggestions, setSuggestions] = useState>([]) const loadSuggestions = async (term: string) => { let users: Array - if (board && board.type === BoardTypeOpen) { + if (!me?.is_guest && (board && board.type === BoardTypeOpen)) { users = await octoClient.searchTeamUsers(term) } else { users = boardUsers