Add is-admin filter to Server Admin Console and add a component to show the server admins on side panel

This commit is contained in:
carlosmonastyrski
2025-03-07 11:42:15 -03:00
parent 58ebebb162
commit 214f837041
8 changed files with 197 additions and 17 deletions
@@ -271,12 +271,13 @@ export const superAdminServiceFactory = ({
return { token, user: userInfo, organization };
};
const getUsers = ({ offset, limit, searchTerm }: TAdminGetUsersDTO) => {
const getUsers = ({ offset, limit, searchTerm, adminsOnly }: TAdminGetUsersDTO) => {
return userDAL.getUsersByFilter({
limit,
offset,
searchTerm,
sortBy: "username"
sortBy: "username",
adminsOnly
});
};