A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: admin user role_id
shuai105811d47e91
diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsxindex 91654e05..db3c8ebd 100644--- a/ui/src/pages/Questions/Detail/index.tsx+++ b/ui/src/pages/Questions/Detail/index.tsx@@ -56,7 +56,7 @@ const Index = () => {const { setUsers } = usePageUsers();const userInfo = loggedUserInfoStore((state) => state.user);const isAuthor = userInfo?.username === question?.user_info?.username;- const isAdmin = userInfo?.is_admin;+ const isAdmin = userInfo?.role_id === 2;const isLogged = Boolean(userInfo?.access_token);const { state: locationState } = useLocation();