Skip to content

Node.js based forum software built for the modern web

updated groups to stop you from removing yourself from the admin group

Josh Rickersbac1a5ec3e82
diff --git a/src/routes/admin.js b/src/routes/admin.js
index 0b23680cd0..d7c1c7863f 100644
--- a/src/routes/admin.js
+++ b/src/routes/admin.js
@@ -429,7 +429,8 @@ var nconf = require('nconf'),
expand: true
}, function (err, groups) {
res.json(200, {
- groups: groups
+ groups: groups,
+ yourid: req.user.uid
});
});
});