Skip to content

Commit

Permalink
Add loggedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
CarolineDenis committed Feb 21, 2025
1 parent e6b1b2a commit f55e945
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ export function useCollectionUserRoles(
headers: { Accept: 'application/json' },
}
).then(({ data }) =>
data.map(({ userid, username, roles }) => ({
data.map(({ userid, username, roles, isloggedin }) => ({
userId: userid,
userName: username,
isLoggedIn: isloggedin,
roles: roles
.map(({ roleid, rolename }) => ({
roleId: roleid,
Expand Down Expand Up @@ -100,6 +101,8 @@ export const mergeCollectionUsers = (
({ userId, userName }) =>
({
userId,
// Need to chnage this
isLoggedIn: false,
userName,
roles: [],
}) as const
Expand Down

0 comments on commit f55e945

Please sign in to comment.