This commit is contained in:
Erik 2022-11-21 12:48:56 +02:00
parent d3251eba11
commit 1218512972
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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(':');