Triggering a logout for checkRights
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Hi there, I was wondering if there is a method that uses checkRights to
trigger a logout and an error message if the user doesnt have rights to
an area ? I firstly attempted checkGroup however even an admin user in
admin group wouldnt work, so I'm trying to apply checkRights to a
particular admin area. Is this correct ?
if (!$lu->liveuser->checkRight(array(4,5,6))) {
$lu->liveuser->logout();
}