mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Refactor UserService.IsDisabled to a property
This commit is contained in:
@@ -75,8 +75,7 @@ namespace BTCPayServer.Controllers
|
||||
Approved = u.RequiresApproval ? u.Approved : null,
|
||||
Created = u.Created,
|
||||
Roles = u.UserRoles.Select(role => role.RoleId),
|
||||
Disabled = u.LockoutEnabled && u.LockoutEnd != null &&
|
||||
DateTimeOffset.UtcNow < u.LockoutEnd.Value.UtcDateTime,
|
||||
Disabled = u.IsDisabled,
|
||||
Stores = u.UserStores.OrderBy(s => !s.StoreData.Archived).ToList()
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user