|
|
|
@ -440,8 +440,8 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
|
protected virtual async Task<bool> EnsureModuleAuthorized()
|
|
|
|
|
{
|
|
|
|
|
long tid = long.Parse(User.TenantId);
|
|
|
|
|
var authStr = await Db.Queryable<SysTenantPermissionAuth>().Where(x => x.PermissionId == PERMISSION_ID && x.TenantId == tid &&
|
|
|
|
|
SqlFunc.Subqueryable<SysPermissionTenant>().Where(spt => spt.PermissionId == x.PermissionId).Any())
|
|
|
|
|
var authStr = await Db.Queryable<SysTenantPermissionAuth>().ClearFilter(typeof(ITenantId)).Where(x => x.PermissionId == PERMISSION_ID && x.TenantId == tid &&
|
|
|
|
|
SqlFunc.Subqueryable<SysPermissionTenant>().Where(spt => spt.PermissionId == x.PermissionId && spt.TenantId == tid).Any())
|
|
|
|
|
.Select(x => x.AuthNum).FirstAsync();
|
|
|
|
|
if (authStr.IsNullOrEmpty())
|
|
|
|
|
return false;
|
|
|
|
|