Merge pull request #26141 from overleaf/ii-managed-users-consent-screen

[web] Joining managed group from projects page

GitOrigin-RevId: 191203559fba94cad45f35de1af2427b2abb9326
This commit is contained in:
ilkin-overleaf
2025-06-11 08:05:09 +00:00
committed by Copybot
parent 6d202432ff
commit 69e2a57769
5 changed files with 98 additions and 34 deletions
@@ -33,4 +33,26 @@ export default {
res.sendStatus(200)
)
},
getNotification(req, res, next) {
const userId = SessionManager.getLoggedInUserId(req.session)
const { notificationId } = req.params
NotificationsHandler.getUserNotifications(
userId,
function (err, unreadNotifications) {
if (err) {
return next(err)
}
const notification = unreadNotifications.find(
n => n._id === notificationId
)
if (!notification) {
return res.status(404).end()
}
res.json(notification)
}
)
},
}