add mutil role

This commit is contained in:
2020-02-18 08:07:51 +08:00
parent 116dd1a808
commit 9b38ee9b39
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ namespace YYApi.Attributes
throw new YYApiException(401);
}
//检测用户类型
if (!Types.Contains(loginInfo.Type))
if (Types.Intersect(loginInfo.Type).Count() == 0)
{
throw new YYApiException(403);
}