mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fix: lint
This commit is contained in:
		| @@ -50,7 +50,7 @@ module.exports = function (Categories) { | ||||
| 			category.backgroundImage = data.backgroundImage; | ||||
| 		} | ||||
|  | ||||
| 		let defaultPrivileges = [ | ||||
| 		const defaultPrivileges = [ | ||||
| 			'groups:find', | ||||
| 			'groups:read', | ||||
| 			'groups:topics:read', | ||||
| @@ -64,12 +64,12 @@ module.exports = function (Categories) { | ||||
| 			'groups:posts:downvote', | ||||
| 			'groups:topics:delete', | ||||
| 		]; | ||||
| 		let modPrivileges = defaultPrivileges.concat([ | ||||
| 		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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user