fix typo
This commit is contained in:
parent
d3251eba11
commit
1218512972
@ -20,7 +20,7 @@ class Util {
|
||||
static checkPermissions (perms, perm, level = 1) {
|
||||
|
||||
if (!perms || typeof perms !== 'object') throw new Error('Missing perms object');
|
||||
if (!perm || typeof perms !== 'string') throw new Error('Missing perm string');
|
||||
if (!perm || typeof perm !== 'string') throw new Error('Missing perm string');
|
||||
|
||||
// Allow for checking of nested permissions, e.g. administrator:createUser
|
||||
const resolveables = perm.split(':');
|
||||
|
Loading…
Reference in New Issue
Block a user