mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
opt admin man
This commit is contained in:
@@ -65,6 +65,7 @@ async function handle(
|
||||
createdAt: item.createdAt,
|
||||
updatedAt: item.updatedAt,
|
||||
allowToLogin: item.allowToLogin,
|
||||
isAdmin: item.isAdmin,
|
||||
};
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -188,6 +188,18 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
|
||||
dataIndex: "updatedAt",
|
||||
render: (value) => getCurrentTime(new Date(value)),
|
||||
},
|
||||
{
|
||||
title: "isAdmin",
|
||||
dataIndex: "isAdmin",
|
||||
width: 80,
|
||||
render: (value) => {
|
||||
return (
|
||||
<div>
|
||||
<Checkbox defaultChecked={value} disabled></Checkbox>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "allowToLogin",
|
||||
dataIndex: "allowToLogin",
|
||||
|
||||
Reference in New Issue
Block a user