feat: knowledge admin role (#5965)

Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: jyong <718720800@qq.com>
This commit is contained in:
Joe 2024-07-04 16:21:40 +08:00 • committed by GitHub
commit 5d9ad430af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 1028 additions and 350 deletions

View file

@ -113,7 +113,7 @@ const NavSelector = ({ curNav, navs, createText, isApp, onCreate, onLoadmore }:
))
}
</div>
{!isApp && (
{!isApp && isCurrentWorkspaceEditor && (
<Menu.Button className='p-1 w-full'>
<div onClick={() => onCreate('')} className={cn(
'flex items-center gap-2 px-3 py-[6px] rounded-lg cursor-pointer hover:bg-gray-100',