[reorg]
This commit is contained in:
parent
730ee00743
commit
02160f1eaf
26 changed files with 129 additions and 132 deletions
|
|
@ -25,7 +25,7 @@ namespace Yavsc.AuthorizationHandlers
|
|||
context.Fail();
|
||||
else if (destUserId == uid)
|
||||
context.Succeed(requirement);
|
||||
else if (_dbContext.Banlist.Any(b=>b.TargetId == uid)) context.Fail();
|
||||
else if (_dbContext.Ban.Any(b=>b.TargetId == uid)) context.Fail();
|
||||
else if (_dbContext.BlackListed.Any(b=>b.OwnerId == destUserId && b.UserId == uid)) context.Fail();
|
||||
else context.Succeed(requirement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue