01/03/2012 6:51pm

PHP | Problem - security permisson dont work


class NotificationPage_Controller extends Page_Controller {


public function NotificationPage_Controller() {
parent::__construct();
$CurrentMember = Member::CurrentMember();
Debug::show($CurrentMember);
if($CurrentMember AND ($CurrentMember->inGroup('User') OR $CurrentMember->inGroup('administrator')))
{
die('dooddo');
} else {
Security::permissionFailure();
}
}


Post Comment