protected function getLoginRedirect(array $user)
    {
        $redirect = "account/{$user['user_id']}";

        if (!empty($user['role_redirect'])) {
            $redirect = $user['role_redirect'];
        }

        if ($this->user->isSuperadmin($user['user_id'])) {
            $redirect = 'admin';
        }

        return $redirect;
    }
protected function getLoginRedirect(array $user)
    {
        $redirect = "account/{$user['user_id']}";

        if (!empty($user['role_redirect'])) {
            $redirect = $user['role_redirect'];
        }

        if ($this->user->isSuperadmin($user['user_id'])) {
            $redirect = 'admin';
        }

        return $redirect;
    }
protected function getLoginRedirect ( array $ user ) { $ redirect = "account/{$user['user_id']}" ; if ( ! empty ( $ user [ 'role_redirect' ] ) ) { $ redirect = $ user [ 'role_redirect' ] ; } if ( $ this -> user -> isSuperadmin ( $ user [ 'user_id' ] ) ) { $ redirect = 'admin' ; } return $ redirect ; }
Returns a redirect path for the user
@param array $user
@return string
Returns a redirect path for the user