Skip to content

Node.js based forum software built for the modern web

test: regular user shouldn't see admin:privileges

Barış Soner Uşaklıcd2040ac6be0
diff --git a/test/controllers-admin.js b/test/controllers-admin.js
index 27e1da854c..f503131a95 100644
--- a/test/controllers-admin.js
+++ b/test/controllers-admin.js
@@ -937,5 +937,11 @@ describe('Admin Controllers', () => {
'groups:admin:settings': false,
});
});
+
+ it('should not have admin:privileges', async () => {
+ const res = await privileges.admin.list(regularUid);
+ assert.strictEqual(res.keys.users.includes('admin:privileges'), false);
+ assert.strictEqual(res.keys.groups.includes('admin:privileges'), false);
+ });
});
});