def METHOD_NAME(self):
    if self.session.user_role == 'admin':
        node = ('admin_node', requests.AdminNodeDesc)
    elif self.session.has_permission('can_edit_general_settings'):
        node = ('general_settings', requests.SiteSettingsDesc)
    else:
        raise errors.InvalidAuthentication
    return node