Ensure side nav streams aren't duplicated in sync
This commit is contained in:
parent
4c0faa755d
commit
7847ce4c1b
3 changed files with 10 additions and 2 deletions
|
@ -80,7 +80,7 @@ public class AccountController : BaseApiController
|
|||
[HttpGet]
|
||||
public async Task<ActionResult<UserDto>> GetCurrentUserAsync()
|
||||
{
|
||||
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.UserPreferences);
|
||||
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.UserPreferences | AppUserIncludes.SideNavStreams);
|
||||
if (user == null) throw new UnauthorizedAccessException();
|
||||
|
||||
var oidcSettings = (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).OidcConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue