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:
@@ -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)
|
||||
}
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user