// Process only POST requests and that at least 'level' is set
if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) {
// Okay, that is valid, now check that the requested level right is valid
- if (isAjaxRequestLevelValid()) {
+ if (isValidAjaxRequestLevel()) {
// Process the request
processAjaxRequest();