Merge branch 'master' into net6.0
This commit is contained in:
@@ -79,6 +79,12 @@ namespace ZR.Admin.WebApi.Extensions
|
||||
return uid;
|
||||
}
|
||||
|
||||
public static bool IsAdmin(this HttpContext context)
|
||||
{
|
||||
long id = GetUId(context);
|
||||
return id == 1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ClaimsIdentity
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user