diff --git a/src/components/Authorization/Authorization.tsx b/src/components/Authorization/Authorization.tsx
index 5cf6d15cea3ac4ccf0c314e8c69a3db13bed78d4..66ef96a9ab7790b9744dc4d47d2ebc094aa44c49 100644
--- a/src/components/Authorization/Authorization.tsx
+++ b/src/components/Authorization/Authorization.tsx
@@ -1,4 +1,6 @@
 import { Unauthorized } from 'components/NonAuthUser/Unauthorized/Unauthorized';
+import { useAuth } from 'hooks/useAuth';
+import { useRole } from 'hooks/useRole';
 import React, { ComponentType, FC } from 'react';
 
 interface WithAuthProps {
@@ -25,8 +27,8 @@ export const withAuthorization = <T extends WithAuthProps = WithAuthProps>(
   ) => {
     const { allowedRoles } = props as T;
 
-    const role = 'admin';
-    const isAuth = true;
+    const [role] = useRole();
+    const [isAuth] = useAuth();
 
     // props comes afterwards so the can override the default ones.
     return allowedRoles.includes(role) && isAuth ? (