1
test-admin.js
Normal file
1
test-admin.js
Normal file
@@ -0,0 +1 @@
|
||||
console.log('Testing admin check:'); console.log('User with accessLevel 1:', simpleAuth.isAdmin.call({isAuthenticated: () => true, user: {accessLevel: 1}})); console.log('User with accessLevel 0:', simpleAuth.isAdmin.call({isAuthenticated: () => true, user: {accessLevel: 0}}));
|
Reference in New Issue
Block a user