From 38b0b3e5f7bfbc0f068640de67b4950e7007f6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 1 Jun 2021 11:26:18 -0400 Subject: [PATCH] fix: lint --- src/categories/create.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/categories/create.js b/src/categories/create.js index 833cf033b1..174eea6f90 100644 --- a/src/categories/create.js +++ b/src/categories/create.js @@ -45,7 +45,7 @@ module.exports = function (Categories) { category.backgroundImage = data.backgroundImage; } - let defaultPrivileges = [ + const defaultPrivileges = [ 'groups:find', 'groups:read', 'groups:topics:read', @@ -60,10 +60,11 @@ module.exports = function (Categories) { 'groups:topics:delete', ]; const modPrivileges = defaultPrivileges.concat([ + 'groups:topics:schedule', 'groups:posts:view_deleted', 'groups:purge', ]); - let guestPrivileges = ['groups:find', 'groups:read', 'groups:topics:read']; + const guestPrivileges = ['groups:find', 'groups:read', 'groups:topics:read']; const result = await plugins.hooks.fire('filter:category.create', { category: category,