mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
fix(Permission configuration): Unable to add restricted users
This commit is contained in:
@@ -159,7 +159,7 @@ const open = async (user: any) => {
|
||||
checkTableList.value = []
|
||||
isIndeterminate.value = false
|
||||
const systemWorkspaceList = await workspaceUserList({}, 1, 1000)
|
||||
workspace.value = systemWorkspaceList.items as any
|
||||
workspace.value = JSON.parse(JSON.stringify(systemWorkspaceList.items as any))
|
||||
if (user?.length) {
|
||||
checkedWorkspace.value = workspace.value.filter((ele: any) => user.includes(ele.id))
|
||||
checkTableList.value = [...checkedWorkspace.value]
|
||||
|
||||
@@ -187,7 +187,9 @@ const open = async (id: any) => {
|
||||
checkAll.value = false
|
||||
isIndeterminate.value = false
|
||||
const systemWorkspaceList = await workspaceOptionUserList({ oid }, 1, 1000)
|
||||
workspace.value = systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any
|
||||
workspace.value = JSON.parse(
|
||||
JSON.stringify(systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any)
|
||||
)
|
||||
loading.value = false
|
||||
centerDialogVisible.value = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user