fix: lint

This commit is contained in:
Barış Soner Uşaklı
2021-06-01 11:26:18 -04:00
parent 8e23b9d766
commit 38b0b3e5f7

View File

@@ -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,