mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-16 18:57:47 -05:00
Slight change with Mongoose
This commit is contained in:
@@ -57,12 +57,6 @@ mongoose.connection.on('disconnected', () => {
|
|||||||
});
|
});
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === "development"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function isOwner(req, res, next) {
|
function isOwner(req, res, next) {
|
||||||
if (req.params.shortName && req.user) {
|
if (req.params.shortName && req.user) {
|
||||||
var short_name = req.params.shortName.toLowerCase();
|
var short_name = req.params.shortName.toLowerCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user