$val){ if(!array_key_exists($key, $declined)){ $_SESSION['perm'][$key] = true; } } } /** * @desc check if the user has a certain permission * @param integer * @return bool * @access public **/ public function hasPermission($permid){ if(isset($_SESSION['perm'][$permid])){ return $_SESSION['perm'][$permid]; } return false; } } ?>