Skip to content

Commit 3c8f4b5

Browse files
authored
fixed activity sessions
1 parent 5cf2d27 commit 3c8f4b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/api/activity/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
9494
.getRankInGroup(groupId, userid)
9595
.catch(() => null);
9696

97-
if (parsedConfig.role && (!userRank || userRank <= parsedConfig.role)) {
97+
if (parsedConfig.role && (!userRank || userRank < parsedConfig.role)) {
9898
return res
9999
.status(200)
100100
.json({ success: true, error: "User is not the right rank" });
@@ -275,4 +275,4 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
275275
.json({ success: false, error: "Internal server error" });
276276
}
277277
}
278-
}
278+
}

0 commit comments

Comments
 (0)