fix: use direct lookup context for pk;member <name> groups
This commit is contained in:
parent
546cdc93c4
commit
cc0779e0e8
@ -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"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user