From 0e95370b797f2eb35f67b06cec22875566a38769 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 12 Feb 2021 09:55:37 +0000 Subject: [PATCH] Linting. --- packages/server/src/utilities/security/permissions.js | 2 +- packages/server/src/utilities/security/roles.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/server/src/utilities/security/permissions.js b/packages/server/src/utilities/security/permissions.js index d826c13966..342654f9ba 100644 --- a/packages/server/src/utilities/security/permissions.js +++ b/packages/server/src/utilities/security/permissions.js @@ -75,7 +75,7 @@ exports.BUILTIN_PERMISSIONS = { _id: exports.BUILTIN_PERMISSION_IDS.PUBLIC, name: "Public", permissions: [ - new Permission(PermissionTypes.WEBHOOK, PermissionLevels.EXECUTE) + new Permission(PermissionTypes.WEBHOOK, PermissionLevels.EXECUTE), ], }, READ_ONLY: { diff --git a/packages/server/src/utilities/security/roles.js b/packages/server/src/utilities/security/roles.js index eadc96d59d..660f190d6f 100644 --- a/packages/server/src/utilities/security/roles.js +++ b/packages/server/src/utilities/security/roles.js @@ -86,7 +86,9 @@ exports.lowerBuiltinRoleID = (roleId1, roleId2) => { if (!roleId2) { return roleId1 } - return builtinRoleToNumber(roleId1) > builtinRoleToNumber(roleId2) ? roleId2 : roleId1 + return builtinRoleToNumber(roleId1) > builtinRoleToNumber(roleId2) + ? roleId2 + : roleId1 } /**