application/modules/g/controllers/AuthController.php
protected function _storeRoleInCookie() {
        $userRecord = Garp_Auth::getInstance()->getUserData();
        if (!empty($userRecord['role'])) {
            $cookie = new Garp_Store_Cookie('Garp_Auth');
            $cookie->userData = array('role' => $userRecord['role']);
        }
    }
protected function _storeRoleInCookie() {
        $userRecord = Garp_Auth::getInstance()->getUserData();
        if (!empty($userRecord['role'])) {
            $cookie = new Garp_Store_Cookie('Garp_Auth');
            $cookie->userData = array('role' => $userRecord['role']);
        }
    }
protected function _storeRoleInCookie ( ) { $ userRecord = Garp_Auth :: getInstance ( ) -> getUserData ( ) ; if ( ! empty ( $ userRecord [ 'role' ] ) ) { $ cookie = new Garp_Store_Cookie ( 'Garp_Auth' ) ; $ cookie -> userData = array ( 'role' => $ userRecord [ 'role' ] ) ; } }
Store user role in cookie, so it can be used with Javascript

@return void
Store user role in cookie so it can be used with Javascript