nodebb-plugin-onekite-calendar 2.0.85 → 2.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/admin.js +3 -3
  2. package/package.json +1 -1
package/lib/admin.js CHANGED
@@ -367,9 +367,9 @@ admin.listGroups = async function (req, res) {
367
367
  const Groups = require.main.require('./src/groups');
368
368
  const q = String((req.query && req.query.q) || '').trim().toLowerCase();
369
369
  const names = await Groups.getGroups('groups:createtime', 0, 500);
370
- const filtered = q
371
- ? (names || []).filter(n => n && String(n).toLowerCase().includes(q))
372
- : (names || []).filter(Boolean);
370
+ const filtered = (names || [])
371
+ .filter(n => n && !Groups.isPrivilegeGroup(n))
372
+ .filter(n => !q || String(n).toLowerCase().includes(q));
373
373
  res.json(filtered.slice(0, 100));
374
374
  } catch (e) {
375
375
  res.json([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-onekite-calendar",
3
- "version": "2.0.85",
3
+ "version": "2.0.86",
4
4
  "description": "FullCalendar-based equipment reservation workflow with admin approval & HelloAsso payment for NodeBB",
5
5
  "main": "library.js",
6
6
  "license": "MIT",