function hasAccess(requiredRole = 'Admin') {
        const session = $injector.get('Session');
        const roles = session.get('roles') || [];

        return (roles.indexOf('Admin') > -1 || roles.indexOf(requiredRole) > -1);
    }
/**
     * Return true or false depending on if the user has the required role
     * @param {string} requiredRole Role required for access
     * @returns {boolean}
     */
Return true or false depending on if the user has the required role
@param {string} requiredRole Role required for access
@returns {boolean}
Return true or false depending on if the user has the required role @param { string } requiredRole Role required for access @returns { boolean }
function hasAccess(requiredRole = 'Admin') {
        const session = $injector.get('Session');
        const roles = session.get('roles') || [];
        return (roles.indexOf('Admin') > -1 || roles.indexOf(requiredRole) > -1);
    }
function hasAccess ( requiredRole = 'Admin' ) { const session = $injector . get ( 'Session' ) ; const roles = session . get ( 'roles' ) || [ ] ; return ( roles . indexOf ( 'Admin' ) > - 1 || roles . indexOf ( requiredRole ) > - 1 ) ; }
Return true or false depending on if the user has the required role
 @param {string} requiredRole Role required for access
 @returns {boolean}
Return true or false depending on if the user has the required role @param { string } requiredRole Role required for access @returns { boolean }