mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	new privilege: Access Topic
differentiation between Access Category and Access Topic, ie. allows you to see the category view but not actually enter the topic itself
This commit is contained in:
		| @@ -50,7 +50,7 @@ topicsController.get = function(req, res, callback) { | ||||
|  | ||||
| 			userPrivileges = results.privileges; | ||||
|  | ||||
| 			if (!userPrivileges.read || (parseInt(results.topic.deleted, 10) && !userPrivileges.view_deleted)) { | ||||
| 			if (!userPrivileges.read || !userPrivileges['topics:read'] || (parseInt(results.topic.deleted, 10) && !userPrivileges.view_deleted)) { | ||||
| 				return helpers.notAllowed(req, res); | ||||
| 			} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user