You missed my last comment on this. 
```
  return (result == ALLOW_ONCE) ||
         (result == ALLOW_SESSION) ||
         (result == ALLOW_ALWAYS);
```