mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	feat: add privilege give/rescind hooks (#8336)
* feat: add privilege give/rescind hooks action:privileges.categories.give/rescind action:privileges.global.give/rescind breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find` * fix: tests, privileges renamed
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a0e243eea1
						
					
				
				
					commit
					ec5582b53c
				
			| @@ -93,7 +93,7 @@ exports.reset = async function (options) { | ||||
| }; | ||||
|  | ||||
| async function resetSettings() { | ||||
| 	await privileges.global.give(['local:login'], 'registered-users'); | ||||
| 	await privileges.global.give(['groups:local:login'], 'registered-users'); | ||||
| 	winston.info('[reset] registered-users given login privilege'); | ||||
| 	winston.info('[reset] Settings reset to default'); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user