diff --git a/TIAMSharedUI/Pages/User/Hotels/HotelAdmin.razor b/TIAMSharedUI/Pages/User/Hotels/HotelAdmin.razor
index 07cc57ea..8c5fff0f 100644
--- a/TIAMSharedUI/Pages/User/Hotels/HotelAdmin.razor
+++ b/TIAMSharedUI/Pages/User/Hotels/HotelAdmin.razor
@@ -2,10 +2,9 @@
@using TIAMSharedUI.Shared
@using TIAMWebApp.Shared.Application.Interfaces;
@using TIAMSharedUI.Shared.Components.BaseComponents
-@inherits BasePageComponent
+@inherits UserBasePageComponent
@layout AdminLayout
@inject IUserDataService UserDataService
-@inject ISessionService SessionService
@@ -33,11 +32,11 @@
protected override void OnInitialized()
{
//check if Id matches with userproductmapping
- if (!SessionService.IsAuthenticated)
+ if (!_sessionService.IsAuthenticated)
{
return;
}
- var check = SessionService.User.UserModelDto.UserProductMappings.Any(x => x.ProductId == id);
+ var check = _sessionService.User.UserModelDto.UserProductMappings.Any(x => x.ProductId == id);
if (!check)
{
return;
diff --git a/TIAMSharedUI/Pages/User/Hotels/HotelComponent.razor b/TIAMSharedUI/Pages/User/Hotels/HotelComponent.razor
index fad159cf..30e83536 100644
--- a/TIAMSharedUI/Pages/User/Hotels/HotelComponent.razor
+++ b/TIAMSharedUI/Pages/User/Hotels/HotelComponent.razor
@@ -15,7 +15,7 @@