if( $userob->check_access( 7, "read" ) ) {
// Apparently I can
The authentication works like a charm, but I do have troubles with this one.
It worked yesterday evening, and suddenly stopped working. After puzzling around for a while, finally it was fixed by updating the permissions from the control panel.
No changes or anything, just hit the update button.
Edit: It happened again. I commented out the caching check and it seems to work stable now.
//if( ! $data ) {
$this->build_permissions();
return true;
// }