mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-03 19:14:03 +00:00 
			
		
		
		
	Signed out user can get advanced information about groups
This commit is contained in:
		@@ -140,7 +140,7 @@ export class GroupsController {
 | 
			
		||||
	 */
 | 
			
		||||
	private static async GroupInfoToAPI(info: GroupInfo, h: RequestHandler, advanced: boolean = false) : Promise<any> {
 | 
			
		||||
		
 | 
			
		||||
		const membership = await GroupsHelper.GetMembershipInfo(info.id, h.getUserId())
 | 
			
		||||
		const membership = await GroupsHelper.GetMembershipInfo(info.id, h.optionnalUserID)
 | 
			
		||||
		
 | 
			
		||||
		const data = {
 | 
			
		||||
			id: info.id,
 | 
			
		||||
 
 | 
			
		||||
@@ -93,5 +93,5 @@ export const Routes : Route[] = [
 | 
			
		||||
 | 
			
		||||
	{path: "/groups/get_multiple_info", cb: (h) => GroupsController.GetInfoMultiple(h)},
 | 
			
		||||
 | 
			
		||||
	{path: "/groups/get_advanced_info", cb: (h) => GroupsController.GetAdvancedInfo(h)},
 | 
			
		||||
	{path: "/groups/get_advanced_info", cb: (h) => GroupsController.GetAdvancedInfo(h), needLogin: false},
 | 
			
		||||
]
 | 
			
		||||
		Reference in New Issue
	
	Block a user