Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix: hide the ghost user from the user list (#866)
Browse files Browse the repository at this point in the history
What type of PR is this?
/kind bug

What this PR does / why we need it:
将ghost用户从用户列表隐藏。

Which issue(s) this PR fixes:
Fixes halo-dev/halo#3317

```release-note
NONE
```
  • Loading branch information
JackyLiang522 authored Feb 20, 2023
1 parent 7b3007e commit 56e7c2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/system/users/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const userStore = useUserStore();
const roleStore = useRoleStore();
const ANONYMOUSUSER_NAME = "anonymousUser";
const DELETEDUSER_NAME = "ghost";
const handleFetchUsers = async (options?: {
mute?: boolean;
Expand All @@ -85,7 +86,10 @@ const handleFetchUsers = async (options?: {
page: users.value.page,
size: users.value.size,
keyword: keyword.value,
fieldSelector: [`name!=${ANONYMOUSUSER_NAME}`],
fieldSelector: [
`name!=${ANONYMOUSUSER_NAME}`,
`name!=${DELETEDUSER_NAME}`,
],
sort: [selectedSortItem.value?.value].filter(
(item) => !!item
) as string[],
Expand Down

1 comment on commit 56e7c2f

@vercel
Copy link

@vercel vercel bot commented on 56e7c2f Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-main-halo-dev.vercel.app
ui-halo-dev.vercel.app
halo-admin-ui.vercel.app

Please sign in to comment.