Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jan 25, 2024
1 parent ea0b193 commit a2937e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export const getIndexById = async (req, res, next) => {
if(pkpSession){
const roles = getRolesFromSession(pkpSession);
Object.assign(index, {roles});
}else{
Object.assign(index, {isOwner: false, isStarred: false});
}
}

Expand Down

0 comments on commit a2937e1

Please sign in to comment.