Release v2.4.2
This commit is contained in:
@@ -43,7 +43,12 @@ module.exports = function registerPlaylistsRoutes(app, deps) {
|
||||
});
|
||||
|
||||
app.get('/playlists/new', requirePermission('playlists.create'), function (req, res) {
|
||||
res.send(pages.renderPlaylistFormPage(req.query.message ? String(req.query.message) : '', req.currentUser));
|
||||
(async function () {
|
||||
const data = await common.fetchAdminData(pool);
|
||||
res.send(await pages.renderPlaylistFormPage(req.query.message ? String(req.query.message) : '', req.currentUser, data, pool));
|
||||
})().catch(function (error) {
|
||||
res.status(500).send(error.message || 'Unable to load page.');
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/playlists/:id/edit', requirePermission('playlists.update'), async function (req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user