fix: use direct lookup context for pk;member <name> groups
This commit is contained in:
		@@ -60,7 +60,7 @@ public class GroupMember
 | 
			
		||||
 | 
			
		||||
    public async Task ListMemberGroups(Context ctx, PKMember target)
 | 
			
		||||
    {
 | 
			
		||||
        var pctx = ctx.LookupContextFor(target.System);
 | 
			
		||||
        var pctx = ctx.DirectLookupContextFor(target.System);
 | 
			
		||||
 | 
			
		||||
        var groups = await _repo.GetMemberGroups(target.Id)
 | 
			
		||||
            .Where(g => g.Visibility.CanAccess(pctx))
 | 
			
		||||
 
 | 
			
		||||
@@ -433,6 +433,8 @@ public class Groups
 | 
			
		||||
 | 
			
		||||
        // TODO: integrate with the normal "search" system
 | 
			
		||||
 | 
			
		||||
        // TODO: integrate with privacy config settings
 | 
			
		||||
 | 
			
		||||
        var pctx = LookupContext.ByNonOwner;
 | 
			
		||||
        if (ctx.MatchFlag("a", "all"))
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user