public function getCurrentRole() {
        $role = self::DEFAULT_VISITOR_ROLE;
        if ($this->isLoggedIn()) {
            $role = self::DEFAULT_USER_ROLE;
            $data = $this->getUserData();
            if (isset($data[self::ROLE_COLUMN])) {
                $role = $data[self::ROLE_COLUMN];
            }
        }
        return $role;
    }