fix: #8500, allow regular users select topics on unread

This commit is contained in:
Barış Soner Uşaklı
2020-07-23 09:27:00 -04:00
parent 4658121a7d
commit 7260646d6c

View File

@@ -49,7 +49,7 @@ unreadController.get = async function (req, res, next) {
req.query.page = Math.max(1, Math.min(data.pageCount, page)); req.query.page = Math.max(1, Math.min(data.pageCount, page));
return helpers.redirect(res, '/unread?' + querystring.stringify(req.query)); return helpers.redirect(res, '/unread?' + querystring.stringify(req.query));
} }
data.showSelect = isPrivileged; data.showSelect = true;
data.showTopicTools = isPrivileged; data.showTopicTools = isPrivileged;
data.categories = watchedCategories.categories; data.categories = watchedCategories.categories;
data.allCategoriesUrl = 'unread' + helpers.buildQueryString('', filter, ''); data.allCategoriesUrl = 'unread' + helpers.buildQueryString('', filter, '');