fix: add CheckOwnGroup in Random.GroupMember

This commit is contained in:
spiral 2022-01-13 12:27:00 -05:00
parent 2aead40449
commit a507883dda
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -55,6 +55,8 @@ public class Random
public async Task GroupMember(Context ctx, PKGroup group)
{
ctx.CheckOwnGroup(group);
var opts = ctx.ParseMemberListOptions(ctx.DirectLookupContextFor(group.System));
opts.GroupFilter = group.Id;