chore: eslint max-len

This commit is contained in:
Peter Jaszkowiak
2021-02-04 02:07:29 -07:00
committed by Julian Lam
parent 5c2f0f0557
commit cc9d6fd08b
64 changed files with 459 additions and 137 deletions

View File

@@ -42,7 +42,9 @@ SocketAdmin.before = async function (socket, method) {
// Check admin privileges mapping (if not in mapping, deny access)
const privilegeSet = privileges.admin.socketMap.hasOwnProperty(method) ? privileges.admin.socketMap[method].split(';') : [];
const hasPrivilege = (await Promise.all(privilegeSet.map(async privilege => privileges.admin.can(privilege, socket.uid)))).some(Boolean);
const hasPrivilege = (await Promise.all(privilegeSet.map(
async privilege => privileges.admin.can(privilege, socket.uid)
))).some(Boolean);
if (privilegeSet.length && hasPrivilege) {
return;
}