public function getRole($current = true)
    {
        if ($current && $this->_hasVar('current_user_role')) {
            return $this->_getRole('current_user_role');
        }
        return $this->_getRole('user_role');
    }
public function getRole($current = true)
    {
        if ($current && $this->_hasVar('current_user_role')) {
            return $this->_getRole('current_user_role');
        }
        return $this->_getRole('user_role');
    }
public function getRole ( $ current = true ) { if ( $ current && $ this -> _hasVar ( 'current_user_role' ) ) { return $ this -> _getRole ( 'current_user_role' ) ; } return $ this -> _getRole ( 'user_role' ) ; }
Returns the current user role.

@param boolean $current Checks value for current role (when false for normal role);
@return string
Returns the current user role .