diff --git a/public/doc.html b/public/doc.html index 91de44d..a8976fd 100644 --- a/public/doc.html +++ b/public/doc.html @@ -45,25 +45,13 @@ diff --git a/public/index.html b/public/index.html index 32912c9..ea6d846 100644 --- a/public/index.html +++ b/public/index.html @@ -50,23 +50,18 @@ + + + + - + --> + diff --git a/server.js b/server.js index bbf5926..07547ac 100644 --- a/server.js +++ b/server.js @@ -597,6 +597,9 @@ app.get('/doc', (req, res) => { if (!req.session.user) { return res.redirect('/'); } + if (!req.session.user || req.session.user.role !== 'admin') { + return res.status(403).send('в разработке'); + } res.sendFile(path.join(__dirname, 'public/doc.html')); });